# HG changeset patch # User Adrian Buehlmann # Date 1308950991 -7200 # Node ID cae09a39b2d26d1b36fcbde541c920df7794db53 # Parent 23325c5ef6a7d537f8106de1869b2aaca9b15c67 test-revert: add case for nothing changed diff -r 23325c5ef6a7 -r cae09a39b2d2 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