Show More
@@ -320,6 +320,13 b' def convert(ui, src, dest=None, revmapfi' | |||||
320 | is very expensive for large projects, and is only effective when |
|
320 | is very expensive for large projects, and is only effective when | |
321 | ``convert.git.similarity`` is greater than 0. The default is False. |
|
321 | ``convert.git.similarity`` is greater than 0. The default is False. | |
322 |
|
322 | |||
|
323 | :convert.git.renamelimit: perform rename and copy detection up to this | |||
|
324 | many changed files in a commit. Increasing this will make rename | |||
|
325 | and copy detection more accurate but will significantly slow down | |||
|
326 | computation on large projects. The option is only relevant if | |||
|
327 | ``convert.git.similarity`` is greater than 0. The default is | |||
|
328 | ``400``. | |||
|
329 | ||||
323 | :convert.git.remoteprefix: remote refs are converted as bookmarks with |
|
330 | :convert.git.remoteprefix: remote refs are converted as bookmarks with | |
324 | ``convert.git.remoteprefix`` as a prefix followed by a /. The default |
|
331 | ``convert.git.remoteprefix`` as a prefix followed by a /. The default | |
325 | is 'remote'. |
|
332 | is 'remote'. |
@@ -78,6 +78,10 b' class convert_git(common.converter_sourc' | |||||
78 | False) |
|
78 | False) | |
79 | if findcopiesharder: |
|
79 | if findcopiesharder: | |
80 | self.simopt.append('--find-copies-harder') |
|
80 | self.simopt.append('--find-copies-harder') | |
|
81 | ||||
|
82 | renamelimit = ui.configint('convert', 'git.renamelimit', | |||
|
83 | default=400) | |||
|
84 | self.simopt.append('-l%d' % renamelimit) | |||
81 | else: |
|
85 | else: | |
82 | self.simopt = [] |
|
86 | self.simopt = [] | |
83 |
|
87 |
@@ -374,6 +374,31 b' source, the copy source took the content' | |||||
374 | A bar-copied2 |
|
374 | A bar-copied2 | |
375 | bar |
|
375 | bar | |
376 |
|
376 | |||
|
377 | renamelimit config option works | |||
|
378 | ||||
|
379 | $ cd git-repo2 | |||
|
380 | $ cp bar bar-copy0 | |||
|
381 | $ echo 0 >> bar-copy0 | |||
|
382 | $ cp bar bar-copy1 | |||
|
383 | $ echo 1 >> bar-copy1 | |||
|
384 | $ git add bar-copy0 bar-copy1 | |||
|
385 | $ commit -a -m 'copy bar 2 times' | |||
|
386 | $ cd .. | |||
|
387 | ||||
|
388 | $ hg -q convert --config convert.git.renamelimit=1 \ | |||
|
389 | > --config convert.git.findcopiesharder=true --datesort git-repo2 fullrepo2 | |||
|
390 | $ hg -R fullrepo2 status -C --change master | |||
|
391 | A bar-copy0 | |||
|
392 | A bar-copy1 | |||
|
393 | ||||
|
394 | $ hg -q convert --config convert.git.renamelimit=100 \ | |||
|
395 | > --config convert.git.findcopiesharder=true --datesort git-repo2 fullrepo3 | |||
|
396 | $ hg -R fullrepo3 status -C --change master | |||
|
397 | A bar-copy0 | |||
|
398 | bar | |||
|
399 | A bar-copy1 | |||
|
400 | bar | |||
|
401 | ||||
377 | test binary conversion (issue1359) |
|
402 | test binary conversion (issue1359) | |
378 |
|
403 | |||
379 | $ count=19 |
|
404 | $ count=19 |
@@ -261,6 +261,13 b'' | |||||
261 | for large projects, and is only effective when |
|
261 | for large projects, and is only effective when | |
262 | "convert.git.similarity" is greater than 0. The default is |
|
262 | "convert.git.similarity" is greater than 0. The default is | |
263 | False. |
|
263 | False. | |
|
264 | convert.git.renamelimit | |||
|
265 | perform rename and copy detection up to this many changed | |||
|
266 | files in a commit. Increasing this will make rename and copy | |||
|
267 | detection more accurate but will significantly slow down | |||
|
268 | computation on large projects. The option is only relevant | |||
|
269 | if "convert.git.similarity" is greater than 0. The default | |||
|
270 | is "400". | |||
264 | convert.git.remoteprefix |
|
271 | convert.git.remoteprefix | |
265 | remote refs are converted as bookmarks with |
|
272 | remote refs are converted as bookmarks with | |
266 | "convert.git.remoteprefix" as a prefix followed by a /. The |
|
273 | "convert.git.remoteprefix" as a prefix followed by a /. The |
General Comments 0
You need to be logged in to leave comments.
Login now