comparison mercurial/localrepo.py @ 14004:97ed99d1f419

eliminate various naked except clauses
author Idan Kamara <idankk86@gmail.com>
date Sat, 23 Apr 2011 00:51:25 +0300
parents d1f4e7fd970a
children 90d997a812dc
comparison
equal deleted inserted replaced
14003:ba734ff5cadd 14004:97ed99d1f419
547 raise error.Abort(_("working directory has unknown parent '%s'!") 547 raise error.Abort(_("working directory has unknown parent '%s'!")
548 % short(key)) 548 % short(key))
549 try: 549 try:
550 if len(key) == 20: 550 if len(key) == 20:
551 key = hex(key) 551 key = hex(key)
552 except: 552 except TypeError:
553 pass 553 pass
554 raise error.RepoLookupError(_("unknown revision '%s'") % key) 554 raise error.RepoLookupError(_("unknown revision '%s'") % key)
555 555
556 def lookupbranch(self, key, remote=None): 556 def lookupbranch(self, key, remote=None):
557 repo = remote or self 557 repo = remote or self