changeset 34177:b88878720526

configitems: register the 'convert.svn.debugsvnlog' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:36:36 +0200
parents 52cbbd28cb2a
children 0cfa7d9b889c
files hgext/convert/__init__.py hgext/convert/subversion.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py	Fri Jun 30 03:36:28 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 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.
 
--- a/hgext/convert/subversion.py	Fri Jun 30 03:36:28 2017 +0200
+++ b/hgext/convert/subversion.py	Fri Jun 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()