hgext/convert/hg.py
changeset 34172 c72af5a4f997
parent 34171 84044b904c6a
child 35176 671aba341d90
equal deleted inserted replaced
34171:84044b904c6a 34172:c72af5a4f997
    45 sha1re = re.compile(r'\b[0-9a-f]{12,40}\b')
    45 sha1re = re.compile(r'\b[0-9a-f]{12,40}\b')
    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')
    51         self.clonebranches = ui.configbool('convert', 'hg.clonebranches')
    51         self.clonebranches = ui.configbool('convert', 'hg.clonebranches')
    52         self.tagsbranch = ui.config('convert', 'hg.tagsbranch')
    52         self.tagsbranch = ui.config('convert', 'hg.tagsbranch')
    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: