Mercurial > hg > mercurial-crew-with-dirclash
diff hgext/convert/hg.py @ 5356:b98c377b3c16
Merge with crew.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 02 Oct 2007 13:49:36 -0700 |
parents | 9c0f864fddca 4fbd27bf04b1 |
children | 8a2915f57dfc |
line wrap: on
line diff
--- a/hgext/convert/hg.py +++ b/hgext/convert/hg.py @@ -156,7 +156,10 @@ class mercurial_sink(converter_sink): 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