mercurial/localrepo.py
changeset 4019 c3864dfb7812
parent 4007 20da40cc1c73
child 4020 dbf250b80cc2
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")