diff tests/test-convert-git.t @ 22471:cc5f94db672b

convert: add support to find git copies from all files in the working copy I couldn't think of a better name for this option, so I stole the Git one in the hope that anyone converting a Git repo knows what it means.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 12 Sep 2014 12:28:30 -0700
parents 8e0c4df28eec
children b1ec65b3ba31
line wrap: on
line diff
--- a/tests/test-convert-git.t	Fri Sep 12 11:23:26 2014 -0700
+++ b/tests/test-convert-git.t	Fri Sep 12 12:28:30 2014 -0700
@@ -277,6 +277,18 @@
     foo
   R foo
 
+  $ cd git-repo2
+  $ cp bar bar-copied2
+  $ git add bar-copied2
+  $ commit -a -m 'copy with no changes'
+  $ cd ..
+
+  $ hg -q convert --config convert.git.similarity=100 \
+  > --config convert.git.findcopiesharder=1 --datesort git-repo2 fullrepo
+  $ hg -R fullrepo status -C --change master
+  A bar-copied2
+    bar
+
 test binary conversion (issue1359)
 
   $ count=19