Patchwork [25,of,27] configitems: register the 'convert.svn.debugsvnlog' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <1014bb15cf2ec7e66e31.1505285975@FB>
Download mbox | patch
Permalink /patch/23857/
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 1498786596 -7200
#      ven. juin 30 03:36:36 2017 +0200
# Node ID 1014bb15cf2ec7e66e31332167ce7cefe42dda71
# Parent  90443693aa15334f563d3040531c5047533e28e0
# EXP-Topic config.register.convert
configitems: register the 'convert.svn.debugsvnlog' config

Patch

diff -r 90443693aa15 -r 1014bb15cf2e hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:36:28 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 30 03:36:36 2017 +0200
@@ -103,6 +103,9 @@ 
 configitem('convert', 'skiptags',
     default=False,
 )
+configitem('convert', 'svn.debugsvnlog',
+    default=True,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
diff -r 90443693aa15 -r 1014bb15cf2e hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	ven. juin 30 03:36:28 2017 +0200
+++ b/hgext/convert/subversion.py	ven. juin 30 03:36:36 2017 +0200
@@ -1059,7 +1059,7 @@ 
         args = [self.baseurl, relpaths, start, end, limit,
                 discover_changed_paths, strict_node_history]
         # developer config: convert.svn.debugsvnlog
-        if not self.ui.configbool('convert', 'svn.debugsvnlog', True):
+        if not self.ui.configbool('convert', 'svn.debugsvnlog'):
             return directlogstream(*args)
         arg = encodeargs(args)
         hgexe = util.hgexecutable()