Check the dirstate to get the branch (fixes issue 2).
author |
Steve Losh <steve@stevelosh.com> |
date |
Thu, 25 Jun 2009 19:21:58 -0400 |
parents |
a23d25518ea5
|
children |
7eb7c612b979
|
branches/tags |
(none) |
files |
prompt.py |
Changes
diff -r a23d25518ea5 -r 228ec7224e2f prompt.py
--- a/prompt.py Fri Jun 19 23:06:57 2009 -0400
+++ b/prompt.py Thu Jun 25 19:21:58 2009 -0400
@@ -53,7 +53,7 @@
'''
def _branch(m):
- branch = repo[-1].branch()
+ branch = repo.dirstate.branch()
return _with_groups(m, branch) if branch else ''
def _status(m):