[Bug 4746] New: Displayed exit status of tool specified in 'ui.patch' is incorrect

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri Jul 3 16:32:43 CDT 2015


http://bz.selenic.com/show_bug.cgi?id=4746

          Priority: normal
            Bug ID: 4746
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: Displayed exit status of tool specified in 'ui.patch'
                    is incorrect
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: zeratul976 at hotmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: unspecified
         Component: Mercurial
           Product: Mercurial

'hg import' can be configured to use a custom patch tool via the 'ui.patch'
option. However, it sometimes claims that the exit status of the tool is
different from what it really is.

For example, if the patch tool is 'patch --merge', and you import a patch that
doesn't merge cleanly, 'patch --merge' returns with exit status 1, but 'hg
import' displays:

  abort: patch command failed: exited with status 256

Jordi GutiƩrrez Hermoso said in bug 4697 comment 27 that this is likely a bug
caused by "how low bits and high bits of error codes are getting translated".

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list