##// 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 class converter_sink(object):
117 117 def __init__(self, ui, path):
118 118 """Initialize conversion sink (or raise NoRepo("message")
119 119 exception if path is not a valid repository)"""
120 raise NotImplementedError()
120 self.path = path
121 self.ui = ui
121 122
122 123 def getheads(self):
123 124 """Return a list of this repository's heads"""
@@ -16,8 +16,7 from common import NoRepo, commit, conve
16 16
17 17 class mercurial_sink(converter_sink):
18 18 def __init__(self, ui, path):
19 self.path = path
20 self.ui = ui
19 converter_sink.__init__(self, ui, path)
21 20 self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True)
22 21 self.clonebranches = ui.configbool('convert', 'hg.clonebranches', False)
23 22 self.tagsbranch = ui.config('convert', 'hg.tagsbranch', 'default')
General Comments 0
You need to be logged in to leave comments. Login now