author | Bryan O'Sullivan <bos@serpentine.com> |
Tue, 02 Oct 2007 13:48:52 -0700 | |
changeset 5358 | 4fbd27bf04b1 |
parent 5357 | c6adf2be6069 |
child 5359 | 6b6104430964 |
--- a/hgext/convert/hg.py Tue Oct 02 13:46:59 2007 -0700 +++ b/hgext/convert/hg.py Tue Oct 02 13:48:52 2007 -0700 @@ -156,7 +156,10 @@ class mercurial_source(converter_source): def __init__(self, ui, path, rev=None): converter_source.__init__(self, ui, path, rev) - self.repo = hg.repository(self.ui, path) + try: + self.repo = hg.repository(self.ui, path) + except: + raise NoRepo("could not open hg repo %s as source" % path) self.lastrev = None self.lastctx = None