mercurial/localrepo.py
changeset 18130 1b05ffce47bd
parent 18128 f0d56efaa35a
child 18131 f0eeb9b3444a
equal deleted inserted replaced
18129:3264d3ce53a0 18130:1b05ffce47bd
  1436         if newheadnodes:
  1436         if newheadnodes:
  1437             ctxgen = (self[node] for node in newheadnodes
  1437             ctxgen = (self[node] for node in newheadnodes
  1438                       if self.changelog.hasnode(node))
  1438                       if self.changelog.hasnode(node))
  1439             cache = self._branchcache
  1439             cache = self._branchcache
  1440             branchmap.update(self, cache, ctxgen)
  1440             branchmap.update(self, cache, ctxgen)
  1441             cache.tipnode = self.changelog.tip()
       
  1442             cache.tiprev = self.changelog.rev(cache.tipnode)
       
  1443             cache.write(self)
  1441             cache.write(self)
  1444 
  1442 
  1445         # Ensure the persistent tag cache is updated.  Doing it now
  1443         # Ensure the persistent tag cache is updated.  Doing it now
  1446         # means that the tag cache only has to worry about destroyed
  1444         # means that the tag cache only has to worry about destroyed
  1447         # heads immediately after a strip/rollback.  That in turn
  1445         # heads immediately after a strip/rollback.  That in turn