# HG changeset patch # User Matt Mackall # Date 2009-11-17 22:23:05 # Node ID 541218fbad2a1b38dc1ff8c7b7a677159d615674 # Parent 274d8e45da786aab9124dca0aebc295495fa425c summary: note non-default branches with -q diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2931,7 +2931,11 @@ def summary(ui, repo, **opts): 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)