Mercurial > hg-git
diff hggit/git_handler.py @ 387:ed28dd69df61
git_handler: support versions of hg without bookmarks
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 15 May 2011 12:24:25 -0500 |
parents | 154334e1e7e0 |
children | 9b6597b70839 |
line wrap: on
line diff
--- a/hggit/git_handler.py Sun May 15 12:23:53 2011 -0500 +++ b/hggit/git_handler.py Sun May 15 12:24:25 2011 -0500 @@ -110,9 +110,10 @@ elif not self.paths: # intial cloning self.update_remote_branches('default', refs) - + # "Activate" a tipmost bookmark. - bms = self.repo['tip'].bookmarks() + bms = getattr(self.repo['tip'], 'bookmarks', + lambda : None)() if bms: bookmarks.setcurrent(self.repo, bms[0]) else: