[PATCH 1 of 2] test-revert: add case for nothing changed

Adrian Buehlmann adrian at cadifra.com
Fri Jun 24 16:46:18 CDT 2011


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1308950991 -7200
# Branch stable
# Node ID 82a960b76b4d8ebcfc997cf6e8caf77dde3a860f
# Parent  f5765353d4300a879ec44590ee658cd78736053c
test-revert: add case for nothing changed

diff --git a/tests/test-revert.t b/tests/test-revert.t
--- a/tests/test-revert.t
+++ b/tests/test-revert.t
@@ -5,6 +5,14 @@
   $ echo 123 > e
   $ hg add a c e
   $ hg commit -m "first" a c e
+
+nothing changed
+
+  $ hg revert
+  abort: no files or directories specified
+  (use --all to discard all changes)
+  [255]
+
   $ echo 123 > b
 
 should show b unknown


More information about the Mercurial-devel mailing list