diff tests/test-mv-cp-st-diff @ 10179:83cfa1baf8ad stable

copies: don't report copies with unrelated branch
author Patrick Mezard <pmezard@gmail.com>
date Fri, 01 Jan 2010 13:58:30 +0100
parents 3f4f14eab085
children
line wrap: on
line diff
--- a/tests/test-mv-cp-st-diff	Wed Dec 30 20:39:59 2009 -0200
+++ b/tests/test-mv-cp-st-diff	Fri Jan 01 13:58:30 2010 +0100
@@ -78,3 +78,18 @@
 tb "add a a1" "hg mv a b" "hg mv b a" "circular rename"
 
 tb "hg mv x y" "add y/x x1" "add y/x x2" "directory move"
+
+# Cannot implement unrelated branch with tb
+echo '% testing copies with unrelated branch'
+hg init unrelated
+cd unrelated
+add a a
+hg ci -Am adda
+hg mv a b
+hg ci -m movea
+hg up -C null
+add a a
+hg ci -Am addunrelateda
+echo '% unrelated branch diff'
+hg diff --git -r 2 -r 1
+cd ..