Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 9423:1444a42f6052
Make distinct lookup error for localrepo.lookup
This allows clone/share to correctly distinguish lookup errors from
corruption errors and catch only the former.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 31 Aug 2009 10:58:33 -0500 |
parents | d3b995dd4eab |
children | 6cfea6e4c892 c295a82a020b |
comparison
equal
deleted
inserted
replaced
9403:3738c8cff1bf | 9423:1444a42f6052 |
---|---|
507 try: | 507 try: |
508 if len(key) == 20: | 508 if len(key) == 20: |
509 key = hex(key) | 509 key = hex(key) |
510 except: | 510 except: |
511 pass | 511 pass |
512 raise error.RepoError(_("unknown revision '%s'") % key) | 512 raise error.RepoLookupError(_("unknown revision '%s'") % key) |
513 | 513 |
514 def local(self): | 514 def local(self): |
515 return True | 515 return True |
516 | 516 |
517 def join(self, f): | 517 def join(self, f): |