From c92aaef0e50fd3203ae188284744924ce3517ab3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 17 Mar 2013 00:42:46 +0530 Subject: [PATCH] bzr segment: Handle repos with shelves correctly Return None instead of a string with spaces for a clean repo with shelves. --- powerline/lib/vcs/bzr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/powerline/lib/vcs/bzr.py b/powerline/lib/vcs/bzr.py index 89c22823..c243836f 100644 --- a/powerline/lib/vcs/bzr.py +++ b/powerline/lib/vcs/bzr.py @@ -53,7 +53,8 @@ class Repository(object): dirtied = 'D' elif line and line[0] == '?': untracked = 'U' - return dirtied + untracked + ans = dirtied + untracked + return ans if ans.strip() else None def branch(self): try: