Only use locally stored bzr branch nickname

Fixes #324 (slow vcs branch segment with bzr checkout)
This commit is contained in:
Kovid Goyal 2013-03-14 20:25:55 +05:30 committed by Kim Silkebækken
parent 747c75c1c4
commit dda500a673
1 changed files with 1 additions and 1 deletions

View File

@ -58,6 +58,6 @@ class Repository(object):
def branch(self):
try:
b = branch.Branch.open(self.directory)
return b.nick or None
return b._get_nick(local=True) or None
except:
pass