Mercurial > hg
comparison tests/test-rename @ 1747:91c56c427171
transitive copy/rename
Add support for transitive copy or rename operations, e.g.
hg rename a b
... (possibly edit b)
hg rename b c
hg commit ...
by actually renaming "b" as "c" while recording a copy of
"a" to "c" and a removal of "a".
author | Robin Farine <robin.farine@terminus.org> |
---|---|
date | Sat, 18 Feb 2006 07:37:59 -0800 |
parents | f49f602fae92 |
children | 64df4220b349 |
comparison
equal
deleted
inserted
replaced
1746:299c3e26ee45 | 1747:91c56c427171 |
---|---|
156 echo "# skip removed files" | 156 echo "# skip removed files" |
157 hg remove d1/b | 157 hg remove d1/b |
158 hg rename d1 d3 | 158 hg rename d1 d3 |
159 hg status | 159 hg status |
160 hg update -C | 160 hg update -C |
161 | |
162 echo "# transitive rename" | |
163 hg rename d1/b d1/bb | |
164 hg rename d1/bb d1/bc | |
165 hg status | |
166 hg update -C | |
167 | |
168 echo "# transitive rename --after" | |
169 hg rename d1/b d1/bb | |
170 mv d1/bb d1/bc | |
171 hg rename --after d1/bb d1/bc | |
172 hg status | |
173 hg update -C |