tests/test-rename
changeset 1822 64df4220b349
parent 1747 91c56c427171
child 1933 7544700fd931
--- a/tests/test-rename	Wed Mar 01 01:45:05 2006 +0100
+++ b/tests/test-rename	Tue Feb 28 23:47:40 2006 -0800
@@ -171,3 +171,11 @@
 hg rename --after d1/bb d1/bc
 hg status
 hg update -C
+
+echo "# idempotent renames (d1/b -> d1/bb followed by d1/bb -> d1/b)"
+hg rename d1/b d1/bb
+echo "some stuff added to d1/bb" >> d1/bb
+hg rename d1/bb d1/b
+hg status
+hg debugstate | grep copy
+hg update -C