configitems: register the 'convert.cvsps.fuzz' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:33:06 +0200
changeset 34166 50f1c2d98db0
parent 34165 8860100908eb
child 34167 6ea92f1b7a87
configitems: register the 'convert.cvsps.fuzz' config
hgext/convert/__init__.py
hgext/convert/cvs.py
--- a/hgext/convert/__init__.py	Fri Jun 30 03:32:53 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:33:06 2017 +0200
@@ -34,6 +34,9 @@
 configitem('convert', 'cvsps.cache',
     default=True,
 )
+configitem('convert', 'cvsps.fuzz',
+    default=60,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/cvs.py	Fri Jun 30 03:32:53 2017 +0200
+++ b/hgext/convert/cvs.py	Fri Jun 30 03:33:06 2017 +0200
@@ -80,7 +80,7 @@
                 cache = None
             db = cvsps.createlog(self.ui, cache=cache)
             db = cvsps.createchangeset(self.ui, db,
-                fuzz=int(self.ui.config('convert', 'cvsps.fuzz', 60)),
+                fuzz=int(self.ui.config('convert', 'cvsps.fuzz')),
                 mergeto=self.ui.config('convert', 'cvsps.mergeto', None),
                 mergefrom=self.ui.config('convert', 'cvsps.mergefrom', None))