# HG changeset patch # User Matt Mackall # Date 1161127818 18000 # Node ID 52617d992eed22f9092549073e871c82f86f2dce # Parent cc9c31b07c2c6420681601dee2c0f8ffe1349091 Report branch for hg log and friends diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -326,6 +326,7 @@ class changeset_printer(object): changes = log.read(changenode) date = util.datestr(changes[2]) + branch = changes[5].get("branch") hexfunc = self.ui.debugflag and hex or short @@ -337,6 +338,8 @@ class changeset_printer(object): self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode))) + if branch: + self.ui.status(_("branch: %s\n") % branch) for tag in self.repo.nodetags(changenode): self.ui.status(_("tag: %s\n") % tag) for parent in parents: