Add branch name to editor text.
authorSimon 'corecode' Schubert <corecode@fs.ei.tum.de>
Thu, 11 Jan 2007 19:47:51 +0100
changeset 4020 dbf250b80cc2
parent 4019 c3864dfb7812
child 4021 1590558e9f60
Add branch name to editor text.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Jan 11 19:33:34 2007 +0100
+++ b/mercurial/localrepo.py	Thu Jan 11 19:47:51 2007 +0100
@@ -761,6 +761,8 @@
             edittext.append("HG: user: %s" % user)
             if p2 != nullid:
                 edittext.append("HG: branch merge")
+            if branchname:
+                edittext.append("HG: branch %s" % branchname)
             edittext.extend(["HG: changed %s" % f for f in changed])
             edittext.extend(["HG: removed %s" % f for f in removed])
             if not changed and not remove: