changeset 9873:541218fbad2a stable

summary: note non-default branches with -q
author Matt Mackall <mpm@selenic.com>
date Tue, 17 Nov 2009 16:23:05 -0600
parents 274d8e45da78
children c51494c53841
files mercurial/commands.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Tue Nov 17 16:22:17 2009 -0600
+++ b/mercurial/commands.py	Tue Nov 17 16:23:05 2009 -0600
@@ -2931,7 +2931,11 @@
 
     branch = ctx.branch()
     bheads = repo.branchheads(branch)
-    ui.status(_('branch: %s\n') % branch)
+    m = _('branch: %s\n') % branch
+    if branch != 'default':
+        ui.write(m)
+    else:
+        ui.status(m)
 
     st = list(repo.status(unknown=True))[:7]
     ms = merge_.mergestate(repo)