changeset 34154:50f1c2d98db0

configitems: register the 'convert.cvsps.fuzz' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:33:06 +0200
parents 8860100908eb
children 6ea92f1b7a87
files hgext/convert/__init__.py hgext/convert/cvs.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))