Merge branchname changes in localrepo.commit.
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 11 Jan 2007 23:13:32 +0100
changeset 4022 bf329bda51a6
parent 4018 dfe87137ed14 (current diff)
parent 4021 1590558e9f60 (diff)
child 4023 6ea8a3b805ee
Merge branchname changes in localrepo.commit.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Jan 05 00:01:53 2007 -0200
+++ b/mercurial/localrepo.py	Thu Jan 11 23:13:32 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" % util.tolocal(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:
@@ -786,6 +788,9 @@
                   parent2=xp2)
         tr.close()
 
+        if self.branchcache and "branch" in extra:
+            self.branchcache[util.tolocal(extra["branch"])] = n
+
         if use_dirstate or update_dirstate:
             self.dirstate.setparents(n)
             if use_dirstate: