[Updated] D11626: dispatch: don't change error status if flushing stdio fails

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Oct 12 17:20:25 UTC 2021


Closed by commit rHG8fae2cc6ee86: dispatch: don't change error status if flushing stdio fails (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11626?vs=30707&id=30745

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11626/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11626

AFFECTED FILES
  mercurial/dispatch.py

CHANGE DETAILS

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -253,7 +253,7 @@
         status = -1
 
     ret = _flushstdio(req.ui, err)
-    if ret:
+    if ret and not status:
         status = ret
     return status
 



To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211012/9a7ce0be/attachment-0002.html>


More information about the Mercurial-patches mailing list