Patchwork [14,of,27] configitems: register the 'convert.hg.ignoreerrors' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <02ef13d05ad905d749dc.1505285964@FB>
Download mbox | patch
Permalink /patch/23846/
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 1498786489 -7200
#      ven. juin 30 03:34:49 2017 +0200
# Node ID 02ef13d05ad905d749dcb605ed97668f1a859630
# Parent  bb608ac7127a42869504635109bc831fec38f7a0
# EXP-Topic config.register.convert
configitems: register the 'convert.hg.ignoreerrors' config

Patch

diff -r bb608ac7127a -r 02ef13d05ad9 hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:34:45 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 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.
 
diff -r bb608ac7127a -r 02ef13d05ad9 hgext/convert/hg.py
--- a/hgext/convert/hg.py	ven. juin 30 03:34:45 2017 +0200
+++ b/hgext/convert/hg.py	ven. juin 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: