##// END OF EJS Templates
convert: add default constructor for converter_sink
Bryan O'Sullivan -
r5440:b4ae8535 default
parent child Browse files
Show More
@@ -117,7 +117,8 b' class converter_sink(object):'
117 def __init__(self, ui, path):
117 def __init__(self, ui, path):
118 """Initialize conversion sink (or raise NoRepo("message")
118 """Initialize conversion sink (or raise NoRepo("message")
119 exception if path is not a valid repository)"""
119 exception if path is not a valid repository)"""
120 raise NotImplementedError()
120 self.path = path
121 self.ui = ui
121
122
122 def getheads(self):
123 def getheads(self):
123 """Return a list of this repository's heads"""
124 """Return a list of this repository's heads"""
@@ -16,8 +16,7 b' from common import NoRepo, commit, conve'
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')
General Comments 0
You need to be logged in to leave comments. Login now