From 0d6daa7c2a77e356a4ec3568288546a52de0454b Mon Sep 17 00:00:00 2001 From: Simon 'corecode' Schubert Date: Thu, 11 Jan 2007 19:33:34 +0100 Subject: [PATCH] When committing, record the changeset in the branchcache. --- mercurial/localrepo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py index 14ecee37de..4ebdf97ae5 100644 --- 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: