# HG changeset patch # User Matt Mackall # Date 1161127819 18000 # Node ID 9a6491770b048d5208dd2e5e3aca5a2d14a00af4 # Parent 52617d992eed22f9092549073e871c82f86f2dce Report branch for hg id diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1577,6 +1577,11 @@ def identify(ui, repo): (modified or added or removed or deleted) and "+" or "")] if not ui.quiet: + + branch = repo.workingctx().branch() + if branch: + output.append("(%s)" % branch) + # multiple tags for a single parent separated by '/' parenttags = ['/'.join(tags) for tags in map(repo.nodetags, parents) if tags]