test-revert: add case for nothing changed stable
authorAdrian Buehlmann <adrian@cadifra.com>
Fri, 24 Jun 2011 23:29:51 +0200
branchstable
changeset 14745 cae09a39b2d2
parent 14744 23325c5ef6a7
child 14746 72e4fcb43227
test-revert: add case for nothing changed
tests/test-revert.t
--- 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