##// END OF EJS Templates
convert: change default for git rename detection to 50%...
Siddharth Agarwal -
r22512:6b6da715 default
parent child Browse files
Show More
@@ -298,7 +298,7 b' def convert(ui, src, dest=None, revmapfi'
298 percentage between ``0`` (disabled) and ``100`` (files must be
298 percentage between ``0`` (disabled) and ``100`` (files must be
299 identical). For example, ``90`` means that a delete/add pair will
299 identical). For example, ``90`` means that a delete/add pair will
300 be imported as a rename if more than 90% of the file hasn't
300 be imported as a rename if more than 90% of the file hasn't
301 changed. The default is ``0``.
301 changed. The default is ``50``.
302
302
303 :convert.git.findcopiesharder: while detecting copies, look at all
303 :convert.git.findcopiesharder: while detecting copies, look at all
304 files in the working copy instead of just changed ones. This
304 files in the working copy instead of just changed ones. This
@@ -94,7 +94,8 b' class convert_git(converter_source):'
94 if not os.path.exists(path + "/objects"):
94 if not os.path.exists(path + "/objects"):
95 raise NoRepo(_("%s does not look like a Git repository") % path)
95 raise NoRepo(_("%s does not look like a Git repository") % path)
96
96
97 similarity = ui.configint('convert', 'git.similarity', default=0)
97 # The default value (50) is based on the default for 'git diff'.
98 similarity = ui.configint('convert', 'git.similarity', default=50)
98 if similarity < 0 or similarity > 100:
99 if similarity < 0 or similarity > 100:
99 raise util.Abort(_('similarity must be between 0 and 100'))
100 raise util.Abort(_('similarity must be between 0 and 100'))
100 if similarity > 0:
101 if similarity > 0:
@@ -252,7 +252,7 b''
252 (disabled) and "100" (files must be identical). For example,
252 (disabled) and "100" (files must be identical). For example,
253 "90" means that a delete/add pair will be imported as a
253 "90" means that a delete/add pair will be imported as a
254 rename if more than 90% of the file hasn't changed. The
254 rename if more than 90% of the file hasn't changed. The
255 default is "0".
255 default is "50".
256 convert.git.findcopiesharder
256 convert.git.findcopiesharder
257 while detecting copies, look at all files in the working
257 while detecting copies, look at all files in the working
258 copy instead of just changed ones. This is very expensive
258 copy instead of just changed ones. This is very expensive
General Comments 0
You need to be logged in to leave comments. Login now