diff mercurial/localrepo.py @ 4019:c3864dfb7812

When committing, record the changeset in the branchcache.
author Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
date Thu, 11 Jan 2007 19:33:34 +0100
parents 20da40cc1c73
children dbf250b80cc2
line wrap: on
line diff
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -786,6 +786,9 @@ class localrepository(repo.repository):
                   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: