mercurial/bookmarks.py
changeset 14004 97ed99d1f419
parent 13663 d16c99f16f00
child 14027 78ab705a8147
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