Mercurial > hg
comparison hgext/convert/hg.py @ 34165:5b8cb63c130c
configitems: register the 'convert.hg.clonebranches' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:34:45 +0200 |
parents | a050d37c2c70 |
children | 79c01348ef34 |
comparison
equal
deleted
inserted
replaced
34164:edac06f3f46d | 34165:5b8cb63c130c |
---|---|
46 | 46 |
47 class mercurial_sink(common.converter_sink): | 47 class mercurial_sink(common.converter_sink): |
48 def __init__(self, ui, path): | 48 def __init__(self, ui, path): |
49 common.converter_sink.__init__(self, ui, path) | 49 common.converter_sink.__init__(self, ui, path) |
50 self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True) | 50 self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True) |
51 self.clonebranches = ui.configbool('convert', 'hg.clonebranches', False) | 51 self.clonebranches = ui.configbool('convert', 'hg.clonebranches') |
52 self.tagsbranch = ui.config('convert', 'hg.tagsbranch', 'default') | 52 self.tagsbranch = ui.config('convert', 'hg.tagsbranch', 'default') |
53 self.lastbranch = None | 53 self.lastbranch = None |
54 if os.path.isdir(path) and len(os.listdir(path)) > 0: | 54 if os.path.isdir(path) and len(os.listdir(path)) > 0: |
55 try: | 55 try: |
56 self.repo = hg.repository(self.ui, path) | 56 self.repo = hg.repository(self.ui, path) |