# HG changeset patch # User Benjamin Pollack # Date 1264007076 18000 # Node ID d431f1cb0dc85abb57f3d87da8ae5da8f297ff0a # Parent 0b2242d65b921f59efd415e1fd627bf88cfff59c fix hg-prompt to work with Mercurial 1.4 diff -r 0b2242d65b92 -r d431f1cb0dc8 prompt.py --- a/prompt.py Sun Jan 10 18:17:52 2010 -0500 +++ b/prompt.py Wed Jan 20 12:04:36 2010 -0500 @@ -123,7 +123,7 @@ def _bookmark(m): try: - book = extensions.find('bookmarks').current(repo) + book = getattr(repo, '_bookmarkcurrent', None) return _with_groups(m.groups(), book) if book else '' except KeyError: return '' @@ -541,4 +541,4 @@ otherwise nothing. In effect, this lets you see if running `hg update` would do something. ''')), -) \ No newline at end of file +)