comparison 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
comparison
equal deleted inserted replaced
4007:20da40cc1c73 4019:c3864dfb7812
783 n = self.changelog.add(mn, changed + removed, text, tr, p1, p2, 783 n = self.changelog.add(mn, changed + removed, text, tr, p1, p2,
784 user, date, extra) 784 user, date, extra)
785 self.hook('pretxncommit', throw=True, node=hex(n), parent1=xp1, 785 self.hook('pretxncommit', throw=True, node=hex(n), parent1=xp1,
786 parent2=xp2) 786 parent2=xp2)
787 tr.close() 787 tr.close()
788
789 if self.branchcache and "branch" in extra:
790 self.branchcache[util.tolocal(extra["branch"])] = n
788 791
789 if use_dirstate or update_dirstate: 792 if use_dirstate or update_dirstate:
790 self.dirstate.setparents(n) 793 self.dirstate.setparents(n)
791 if use_dirstate: 794 if use_dirstate:
792 self.dirstate.update(new, "n") 795 self.dirstate.update(new, "n")