1. Ivan Andrus
  2. hg-prompt

Commits

Steve Losh  committed d120253

Update the bookmark fix to be backwards compatible.

  • Participants
  • Parent commits d431f1c
  • Branches default

Comments (0)

Files changed (1)

File prompt.py

View file
     
     def _bookmark(m):
         try:
+            book = extensions.find('bookmarks').current(repo)
+        except AttributeError:
             book = getattr(repo, '_bookmarkcurrent', None)
-            return _with_groups(m.groups(), book) if book else ''
-        except KeyError:
-            return ''
+        return _with_groups(m.groups(), book) if book else ''
     
     def _tags(m):
         g = m.groups()