# HG changeset patch # User Steve Losh # Date 1245972118 14400 # Node ID 228ec7224e2f7bacf9185de513ee24a67ed726b5 # Parent a23d25518ea52d9326dc674e00b0ed5a680661af Check the dirstate to get the branch (fixes issue 2). 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):