test-copy2: add case for moving a missing file
authorAdrian Buehlmann <adrian@cadifra.com>
Thu, 02 Jun 2011 19:43:17 +0200
changeset 14517 5a931246afc5
parent 14516 842a9179132c
child 14518 a67e866f46f9
test-copy2: add case for moving a missing file
tests/test-copy2.t
--- a/tests/test-copy2.t	Thu Jun 02 00:43:34 2011 +0300
+++ b/tests/test-copy2.t	Thu Jun 02 19:43:17 2011 +0200
@@ -27,6 +27,13 @@
   A foo
   $ hg commit -m1
 
+moving a missing file
+  $ rm foo
+  $ hg mv foo foo3
+  foo: deleted in working copy
+  foo3 does not exist!
+  $ hg up -qC .
+
 copy --after to a nonexistant target filename
   $ hg cp -A foo dummy
   foo: not recording copy - dummy does not exist