[PATCH 1 of 2] test-copy2: add case for moving a missing file

Adrian Buehlmann adrian at cadifra.com
Thu Jun 2 15:48:04 CDT 2011


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1307036597 -7200
# Node ID 461b44a80d761438499e4421b896754a81933ec8
# Parent  85fe676c27e9a73ae0cc5b3c41469b3d5740d128
test-copy2: add case for moving a missing file

diff --git a/tests/test-copy2.t b/tests/test-copy2.t
--- a/tests/test-copy2.t
+++ b/tests/test-copy2.t
@@ -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


More information about the Mercurial-devel mailing list