Mercurial > hg
diff tests/test-rename.out @ 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 | d1f209bb9564 |
children | 0d09f2244805 |
line wrap: on
line diff
--- a/tests/test-rename.out Sat May 01 15:00:21 2010 +0300 +++ b/tests/test-rename.out Sat May 01 18:39:40 2010 -0400 @@ -8,6 +8,8 @@ d1/d11/a1 R d1/d11/a1 1 files updated, 0 files merged, 0 files removed, 0 files unresolved +# rename --after a single file to a nonexistant target filename +d1/a: not recording move - dummy does not exist # move a single file to an existing directory A d2/a1 d1/d11/a1 @@ -170,6 +172,8 @@ 4 files updated, 0 files merged, 0 files removed, 0 files unresolved # move --after some files under d1 to d2/d21 (glob) moving d1/a to d2/d21/a +d1/b: not recording move - d2/d21/b does not exist +d1/ba: not recording move - d2/d21/ba does not exist moving d1/d11/a1 to d2/d21/a1 A d2/d21/a d1/a