comparison hgext/convert/hg.py @ 5521:03496d4fa509

convert: display all errors if we couldn't open the source repo This should give the user a better hint of what's going wrong. Improve some error messages. In particular, mention "CVS checkout" instead of "CVS repo". Fixes issue822 and issue826.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 09 Nov 2007 20:21:35 -0200
parents 71e7c86adcb7
children f5345a2d2391
comparison
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):