diff tests/test-revert.t @ 14745:cae09a39b2d2 stable

test-revert: add case for nothing changed
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 24 Jun 2011 23:29:51 +0200
parents e0039716f3ea
children 6ba51c81ff75
line wrap: on
line diff
--- a/tests/test-revert.t	Fri Jun 24 19:38:28 2011 +0300
+++ b/tests/test-revert.t	Fri Jun 24 23:29:51 2011 +0200
@@ -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