Patchwork [02,of,27] configitems: register the 'convert.cvsps.fuzz' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <b0b81a60d458a9b1be73.1505285952@FB>
Download mbox | patch
Permalink /patch/23833/
State Accepted
Headers show

Comments

Boris Feld - Sept. 13, 2017, 6:59 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498786386 -7200
#      ven. juin 30 03:33:06 2017 +0200
# Node ID b0b81a60d458a9b1be73a21d94268735a5409626
# Parent  30cdc4d4189ee6399c8a39d825333c0602244899
# EXP-Topic config.register.convert
configitems: register the 'convert.cvsps.fuzz' config

Patch

diff -r 30cdc4d4189e -r b0b81a60d458 hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:32:53 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 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.
 
diff -r 30cdc4d4189e -r b0b81a60d458 hgext/convert/cvs.py
--- a/hgext/convert/cvs.py	ven. juin 30 03:32:53 2017 +0200
+++ b/hgext/convert/cvs.py	ven. juin 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))