comparison 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
comparison
equal deleted inserted replaced
11151:c5c190822501 11152:e8d10d085f47
6 # rename --after a single file 6 # rename --after a single file
7 A d2/c 7 A d2/c
8 d1/d11/a1 8 d1/d11/a1
9 R d1/d11/a1 9 R d1/d11/a1
10 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 10 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
11 # rename --after a single file to a nonexistant target filename
12 d1/a: not recording move - dummy does not exist
11 # move a single file to an existing directory 13 # move a single file to an existing directory
12 A d2/a1 14 A d2/a1
13 d1/d11/a1 15 d1/d11/a1
14 R d1/d11/a1 16 R d1/d11/a1
15 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 17 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
168 R d1/ba 170 R d1/ba
169 R d1/d11/a1 171 R d1/d11/a1
170 4 files updated, 0 files merged, 0 files removed, 0 files unresolved 172 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
171 # move --after some files under d1 to d2/d21 (glob) 173 # move --after some files under d1 to d2/d21 (glob)
172 moving d1/a to d2/d21/a 174 moving d1/a to d2/d21/a
175 d1/b: not recording move - d2/d21/b does not exist
176 d1/ba: not recording move - d2/d21/ba does not exist
173 moving d1/d11/a1 to d2/d21/a1 177 moving d1/d11/a1 to d2/d21/a1
174 A d2/d21/a 178 A d2/d21/a
175 d1/a 179 d1/a
176 A d2/d21/a1 180 A d2/d21/a1
177 d1/d11/a1 181 d1/d11/a1