Mercurial > hg
comparison tests/test-convert.t @ 30646:ea3540e66fd8
convert: config option for git rename limit
By default, Git applies rename and copy detection to 400 files. The
diff.renamelimit config option and -l argument to diff commands can
override this.
As part of converting some repositories in the wild, I was hitting
the default limit. Unfortunately, the warnings that Git prints in this
scenario are swallowed because the process running functionality in
common.py redirects stderr to /dev/null by default. This seems like
a bug, but a bug for another day.
This commit establishes a config option to send the rename limit
through to `git diff-tree`. The added tests demonstrate a too-low
rename limit doesn't result in copy metadata being recorded.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 18 Dec 2016 12:53:20 -0800 |
parents | d65e246100ed |
children | 1f21a6835604 |
comparison
equal
deleted
inserted
replaced
30645:a3f335d1247c | 30646:ea3540e66fd8 |
---|---|
259 while detecting copies, look at all files in the working | 259 while detecting copies, look at all files in the working |
260 copy instead of just changed ones. This is very expensive | 260 copy instead of just changed ones. This is very expensive |
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 |
267 default is 'remote'. | 274 default is 'remote'. |
268 convert.git.skipsubmodules | 275 convert.git.skipsubmodules |