5dc059aeb5f4 — Kevin Bullock 5 years ago
Fix bookmark output on Mercurial 3.5.

Mercurial 3.5 renamed the `repo._bookmarkcurrent` attribute to
`_activebookmark`.
1 files changed, 2 insertions(+), 0 deletions(-)

M prompt.py
M prompt.py +2 -0
@@ 110,6 110,8 @@ def prompt(ui, repo, fs='', **opts):
             book = getattr(repo, '_bookmarkcurrent', None)
         except KeyError:
             book = getattr(repo, '_bookmarkcurrent', None)
+        if book is None:
+            book = getattr(repo, '_activebookmark', None)
         if book:
             cur = repo['.'].node()
             if repo._bookmarks[book] == cur: