d431f1cb0dc8

fix hg-prompt to work with Mercurial 1.4
[view raw] [browse files]
author Benjamin Pollack <benjamin@bitquabit.com>
date Wed, 20 Jan 2010 12:04:36 -0500
parents 0b2242d65b92
children d12025340b02
branches/tags (none)
files prompt.py

Changes

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
+)