changeset 14517:5a931246afc5

test-copy2: add case for moving a missing file
author Adrian Buehlmann <adrian@cadifra.com>
date Thu, 02 Jun 2011 19:43:17 +0200
parents 842a9179132c
children a67e866f46f9
files tests/test-copy2.t
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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