##// END OF EJS Templates
convert: fail properly if we can't read a source hg repository
Bryan O'Sullivan -
r5358:4fbd27bf default
parent child Browse files
Show More
@@ -156,7 +156,10 b' class mercurial_sink(converter_sink):'
156 class mercurial_source(converter_source):
156 class mercurial_source(converter_source):
157 def __init__(self, ui, path, rev=None):
157 def __init__(self, ui, path, rev=None):
158 converter_source.__init__(self, ui, path, rev)
158 converter_source.__init__(self, ui, path, rev)
159 try:
159 self.repo = hg.repository(self.ui, path)
160 self.repo = hg.repository(self.ui, path)
161 except:
162 raise NoRepo("could not open hg repo %s as source" % path)
160 self.lastrev = None
163 self.lastrev = None
161 self.lastctx = None
164 self.lastctx = None
162
165
General Comments 0
You need to be logged in to leave comments. Login now