diff tests/test-copy2 @ 11152:e8d10d085f47

cmdutil: Warn when trying to copy/rename --after to a nonexistant file. Currently running 'hg rename --after foo.txt bar.typo' is a silent no-op. This patch adds a warning. It also updates the copy and rename tests. No actual functionality is changed. fixes issue 1822
author Steve Losh <steve@stevelosh.com>
date Sat, 01 May 2010 18:39:40 -0400
parents 6c82beaaa11a
children
line wrap: on
line diff
--- a/tests/test-copy2	Sat May 01 15:00:21 2010 +0300
+++ b/tests/test-copy2	Sat May 01 18:39:40 2010 -0400
@@ -19,6 +19,9 @@
 hg st -A
 hg commit -m1
 
+echo "# copy --after to a nonexistant target filename"
+hg cp -A foo dummy
+
 echo "# dry-run; should show that foo is clean"
 hg copy --dry-run foo bar
 hg st -A