comparison hgext/convert/hg.py @ 5436:b4ae8535f834

convert: add default constructor for converter_sink
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 10 Oct 2007 15:30:00 -0700
parents d0c67b52ac01
children 71e7c86adcb7
comparison
equal deleted inserted replaced
5435:d0c67b52ac01 5436:b4ae8535f834
14 14
15 from common import NoRepo, commit, converter_source, converter_sink 15 from common import NoRepo, commit, converter_source, converter_sink
16 16
17 class mercurial_sink(converter_sink): 17 class mercurial_sink(converter_sink):
18 def __init__(self, ui, path): 18 def __init__(self, ui, path):
19 self.path = path 19 converter_sink.__init__(self, ui, path)
20 self.ui = ui
21 self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True) 20 self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True)
22 self.clonebranches = ui.configbool('convert', 'hg.clonebranches', False) 21 self.clonebranches = ui.configbool('convert', 'hg.clonebranches', False)
23 self.tagsbranch = ui.config('convert', 'hg.tagsbranch', 'default') 22 self.tagsbranch = ui.config('convert', 'hg.tagsbranch', 'default')
24 self.lastbranch = None 23 self.lastbranch = None
25 try: 24 try: