[PATCH] test-revert: add revert --all case when nothing changed

Augie Fackler durin42 at gmail.com
Mon Jun 27 23:14:38 UTC 2011


On Jun 27, 2011, at 6:04 PM, Adrian Buehlmann wrote:
> 
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1309215393 -7200
> # Branch stable
> # Node ID 67c7e452fcc21bdd9b5b5aca0f0926650336ab1e
> # Parent  1e6661e098182cbb8e3cf90c9d77d27d277a2823
> test-revert: add revert --all case when nothing changed
> 
> supposed to succeed without notice
> 
> diff --git a/tests/test-revert.t b/tests/test-revert.t
> --- a/tests/test-revert.t
> +++ b/tests/test-revert.t
> @@ -12,6 +12,7 @@
>   abort: no files or directories specified
>   (use --all to revert all files)
>   [255]

I might be inclined to put a little comment here that you're expecting no change and success, just for completeness so future readers don't have to do a blame to figure out why this line is here.

> +  $ hg revert --all
> 
>   $ echo 123 > b
> 
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel





More information about the Mercurial-devel mailing list