[Bug 3611] New: HG outgoing returns incorrect exit code with largefiles extension enabled

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Wed Sep 5 05:47:52 CDT 2012


          Priority: normal
            Bug ID: 3611
                CC: mercurial-devel at selenic.com, natosha at gmail.com
          Assignee: bugzilla at selenic.com
           Summary: HG outgoing returns incorrect exit code with
                    largefiles extension enabled
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: martin at campbellsoftware.co.uk
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.3
         Component: largefiles
           Product: Mercurial

HG outgoing is documented as returning the following exit codes from "hg help

Returns 0 if there are outgoing changes, 1 otherwise.

However, a zero exit code is now being returned on our Windows computers when
there are no outgoing changes to push. 

To reproduce

Enable largefiles extension.

Load a command prompt and navigate to a folder where you can perform the test.
Run the following commands:

mkdir test
cd test
hg init
cd ..
hg clone test test2
cd test2
hg out

Note that the exit code returned is 0 and not 1 as documented. This does work
as described if the largefiles extension is NOT enabled.


This has caused problems with one of our automated builds which had a stage
that would check that there are no outgoing changes not pushed to our master

We have performed a work around using "hq out -q" to a temp file and then
checking if this file is empty. This may be useful for anyone else who is also
relying on the exit code for hg out until this can be properly fixed.

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

More information about the Mercurial-devel mailing list