# HG changeset patch # User Simon 'corecode' Schubert # Date 1168540414 -3600 # Node ID c3864dfb7812b845ebbb124ab988e39439daad67 # Parent 20da40cc1c7331d759a8fd068d0769dc6af0b33d When committing, record the changeset in the branchcache. diff -r 20da40cc1c73 -r c3864dfb7812 mercurial/localrepo.py --- a/mercurial/localrepo.py Fri Dec 29 20:04:31 2006 -0600 +++ b/mercurial/localrepo.py Thu Jan 11 19:33:34 2007 +0100 @@ -786,6 +786,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: