changeset 34168:9bda5ce97be3

configitems: register the 'convert.hg.saverev' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:35:12 +0200
parents 1a594c1d83f8
children 0ef4e9e30b88
files hgext/convert/__init__.py hgext/convert/hg.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py	Fri Jun 30 03:34:58 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:35:12 2017 +0200
@@ -76,6 +76,9 @@
 configitem('convert', 'hg.revs',
     default=None,
 )
+configitem('convert', 'hg.saverev',
+    default=False,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/hg.py	Fri Jun 30 03:34:58 2017 +0200
+++ b/hgext/convert/hg.py	Fri Jun 30 03:35:12 2017 +0200
@@ -448,7 +448,7 @@
         common.converter_source.__init__(self, ui, path, revs)
         self.ignoreerrors = ui.configbool('convert', 'hg.ignoreerrors')
         self.ignored = set()
-        self.saverev = ui.configbool('convert', 'hg.saverev', False)
+        self.saverev = ui.configbool('convert', 'hg.saverev')
         try:
             self.repo = hg.repository(self.ui, path)
             # try to provoke an exception if this isn't really a hg