summaryrefslogtreecommitdiffstats
path: root/subcmds/prune.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/prune.py')
-rw-r--r--subcmds/prune.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/subcmds/prune.py b/subcmds/prune.py
index dc8b8c9d..ff2fba1d 100644
--- a/subcmds/prune.py
+++ b/subcmds/prune.py
@@ -51,11 +51,16 @@ class Prune(PagedCommand):
51 out.project('project %s/' % project.relpath) 51 out.project('project %s/' % project.relpath)
52 out.nl() 52 out.nl()
53 53
54 commits = branch.commits 54 print('%s %-33s ' % (
55 date = branch.date
56 print('%s %-33s (%2d commit%s, %s)' % (
57 branch.name == project.CurrentBranch and '*' or ' ', 55 branch.name == project.CurrentBranch and '*' or ' ',
58 branch.name, 56 branch.name), end='')
57
58 if not branch.base_exists:
59 print('(ignoring: tracking branch is gone: %s)' % (branch.base,))
60 else:
61 commits = branch.commits
62 date = branch.date
63 print('(%2d commit%s, %s)' % (
59 len(commits), 64 len(commits),
60 len(commits) != 1 and 's' or ' ', 65 len(commits) != 1 and 's' or ' ',
61 date)) 66 date))