diff tests/test-addremove-similar @ 8489:1a96f1d9599b

addremove/findrenames: find renames according to the match object (issue1527) Instead of only finding similarities in the added/removed files found by the addremove step, follow the match object: hg addremove -s80 foo -> add and removes files in foo + find similarities between files in foo hg addremove -s80 -> add and removes files in the whole repo + find similarities between files in the whole repo hg import --similarity will still work correctly (only find similarities between files found in the patch).
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 17 May 2009 22:51:17 +0200
parents 8d982aef0be1
children
line wrap: on
line diff
--- a/tests/test-addremove-similar	Sun May 17 22:40:04 2009 +0200
+++ b/tests/test-addremove-similar	Sun May 17 22:51:17 2009 +0200
@@ -46,4 +46,22 @@
 hg addremove -s -1
 hg addremove -s 1e6
 
+cd ..
+
+echo '% issue 1527'
+hg init rep3; cd rep3
+mkdir d
+echo a > d/a
+hg add d/a
+hg commit -m 1
+
+mv d/a d/b
+hg addremove -s80
+hg debugstate
+mv d/b c
+echo "% no copies found here (since the target isn't in d"
+hg addremove -s80 d
+echo "% copies here"
+hg addremove -s80
+
 true