configitems: register the 'convert.hg.ignoreerrors' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:34:49 +0200
changeset 34166 79c01348ef34
parent 34165 5b8cb63c130c
child 34167 1a594c1d83f8
configitems: register the 'convert.hg.ignoreerrors' config
hgext/convert/__init__.py
hgext/convert/hg.py
--- a/hgext/convert/__init__.py	Fri Jun 30 03:34:45 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:34:49 2017 +0200
@@ -70,6 +70,9 @@
 configitem('convert', 'hg.clonebranches',
     default=False,
 )
+configitem('convert', 'hg.ignoreerrors',
+    default=False,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/hg.py	Fri Jun 30 03:34:45 2017 +0200
+++ b/hgext/convert/hg.py	Fri Jun 30 03:34:49 2017 +0200
@@ -446,7 +446,7 @@
 class mercurial_source(common.converter_source):
     def __init__(self, ui, path, revs=None):
         common.converter_source.__init__(self, ui, path, revs)
-        self.ignoreerrors = ui.configbool('convert', 'hg.ignoreerrors', False)
+        self.ignoreerrors = ui.configbool('convert', 'hg.ignoreerrors')
         self.ignored = set()
         self.saverev = ui.configbool('convert', 'hg.saverev', False)
         try: