[PATCH 1 of 5 STABLE V2] largefiles: exit from outgoing with 1 when nothing is pending (issue3611)

Greg Ward greg at gerg.ca
Thu Sep 13 09:28:20 CDT 2012


On 09 September 2012, Matt Harbison said:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1346894768 14400
> # Branch stable
> # Node ID 38f17c53cdaa924161b49ae92d5b82cb225f4f89
> # Parent  3ee5d3c372fabcf57c305835dac98da78bdc1837
> largefiles: exit from outgoing with 1 when nothing is pending (issue3611)
> diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
> --- a/tests/test-largefiles.t
> +++ b/tests/test-largefiles.t
> @@ -1144,6 +1144,15 @@
>  largefiles can be pushed locally (issue3583)
>    $ hg init dest
>    $ cd r4
> +  $ hg outgoing ../dest
> +  comparing with ../dest
> +  searching for changes
> +  changeset:   0:639881c12b4c
> +  tag:         tip
> +  user:        test
> +  date:        Thu Jan 01 00:00:00 1970 +0000
> +  summary:     m1
> +  

Minor: you can use "hg outgoing -q" for less clutter here. All we care
about is that 1) it finds one changeset and 2) it exits with zero
status.

> @@ -1152,6 +1161,13 @@
>    adding manifests
>    adding file changes
>    added 1 changesets with 1 changes to 1 files
> + 
> +exit code with nothing outgoing (issue3611)
> +  $ hg outgoing ../dest
> +  comparing with ../dest
> +  searching for changes
> +  no changes found
> +  [1]

Ditto.

-- 
Greg Ward                                http://www.gerg.ca/
"He's dead, Jim.  You get his tricorder and I'll grab his wallet."


More information about the Mercurial-devel mailing list