changeset 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 23325c5ef6a7
children 72e4fcb43227
files tests/test-revert.t
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
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