diff 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
line wrap: on
line diff
--- a/tests/test-rename	Sat Feb 18 16:31:02 2006 +0100
+++ b/tests/test-rename	Sat Feb 18 07:37:59 2006 -0800
@@ -158,3 +158,16 @@
 hg rename d1 d3
 hg status
 hg update -C
+
+echo "# transitive rename"
+hg rename d1/b d1/bb
+hg rename d1/bb d1/bc
+hg status
+hg update -C
+
+echo "# transitive rename --after"
+hg rename d1/b d1/bb
+mv d1/bb d1/bc
+hg rename --after d1/bb d1/bc
+hg status
+hg update -C