equal
deleted
inserted
replaced
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 |