comparison mercurial/bookmarks.py @ 14004:97ed99d1f419

eliminate various naked except clauses
author Idan Kamara <idankk86@gmail.com>
date Sat, 23 Apr 2011 00:51:25 +0300
parents d16c99f16f00
children 78ab705a8147
comparison
equal deleted inserted replaced
14003:ba734ff5cadd 14004:97ed99d1f419
27 bookmarks = {} 27 bookmarks = {}
28 for line in repo.opener('bookmarks'): 28 for line in repo.opener('bookmarks'):
29 sha, refspec = line.strip().split(' ', 1) 29 sha, refspec = line.strip().split(' ', 1)
30 refspec = encoding.tolocal(refspec) 30 refspec = encoding.tolocal(refspec)
31 bookmarks[refspec] = repo.changelog.lookup(sha) 31 bookmarks[refspec] = repo.changelog.lookup(sha)
32 except: 32 except IOError:
33 pass 33 pass
34 return bookmarks 34 return bookmarks
35 35
36 def readcurrent(repo): 36 def readcurrent(repo):
37 '''Get the current bookmark 37 '''Get the current bookmark