bzr segment: Handle repos with shelves correctly
Return None instead of a string with spaces for a clean repo with shelves.
This commit is contained in:
parent
f0f1f3f85e
commit
c92aaef0e5
|
@ -53,7 +53,8 @@ class Repository(object):
|
||||||
dirtied = 'D'
|
dirtied = 'D'
|
||||||
elif line and line[0] == '?':
|
elif line and line[0] == '?':
|
||||||
untracked = 'U'
|
untracked = 'U'
|
||||||
return dirtied + untracked
|
ans = dirtied + untracked
|
||||||
|
return ans if ans.strip() else None
|
||||||
|
|
||||||
def branch(self):
|
def branch(self):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue