Report branch for hg id
authorMatt Mackall <mpm@selenic.com>
Tue, 17 Oct 2006 18:30:19 -0500
changeset 3430 9a6491770b04
parent 3429 52617d992eed
child 3431 145a8fde69e6
Report branch for hg id
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]