# HG changeset patch # User Steve Losh # Date 1264032462 18000 # Node ID d12025340b02a3443c8083f9d8644337d67af66c # Parent d431f1cb0dc85abb57f3d87da8ae5da8f297ff0a Update the bookmark fix to be backwards compatible. diff -r d431f1cb0dc8 -r d12025340b02 prompt.py --- a/prompt.py Wed Jan 20 12:04:36 2010 -0500 +++ b/prompt.py Wed Jan 20 19:07:42 2010 -0500 @@ -123,10 +123,10 @@ 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()