hgext/convert/hg.py
changeset 5521 03496d4fa509
parent 5441 71e7c86adcb7
child 5522 f5345a2d2391
equal deleted inserted replaced
5520:cc3af86ab6fe 5521:03496d4fa509
   188             # try to provoke an exception if this isn't really a hg
   188             # try to provoke an exception if this isn't really a hg
   189             # repo, but some other bogus compatible-looking url
   189             # repo, but some other bogus compatible-looking url
   190             self.repo.heads()
   190             self.repo.heads()
   191         except hg.RepoError:
   191         except hg.RepoError:
   192             ui.print_exc()
   192             ui.print_exc()
   193             raise NoRepo("could not open hg repo %s as source" % path)
   193             raise NoRepo("%s does not look like a Mercurial repo" % path)
   194         self.lastrev = None
   194         self.lastrev = None
   195         self.lastctx = None
   195         self.lastctx = None
   196         self._changescache = None
   196         self._changescache = None
   197 
   197 
   198     def changectx(self, rev):
   198     def changectx(self, rev):