##// 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 156 class mercurial_source(converter_source):
157 157 def __init__(self, ui, path, rev=None):
158 158 converter_source.__init__(self, ui, path, rev)
159 self.repo = hg.repository(self.ui, path)
159 try:
160 self.repo = hg.repository(self.ui, path)
161 except:
162 raise NoRepo("could not open hg repo %s as source" % path)
160 163 self.lastrev = None
161 164 self.lastctx = None
162 165
General Comments 0
You need to be logged in to leave comments. Login now