Patchwork [16,of,27] configitems: register the 'convert.hg.saverev' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <7eb23ec158592611555d.1505285966@FB>
Download mbox | patch
Permalink /patch/23847/
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 1498786512 -7200
#      ven. juin 30 03:35:12 2017 +0200
# Node ID 7eb23ec158592611555de67654bfb88d671f9c52
# Parent  ec1265e10b50045c7889343ef431e974f906c5b9
# EXP-Topic config.register.convert
configitems: register the 'convert.hg.saverev' config

Patch

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