mercurial/localrepo.py
changeset 19884 fc3fbca35085
parent 19853 eddc2a2d57e6
child 19928 d1ac3790e10a
equal deleted inserted replaced
19881:821a89018f17 19884:fc3fbca35085
  2227                     # During strip, branchcache is invalid but coming call to
  2227                     # During strip, branchcache is invalid but coming call to
  2228                     # `destroyed` will repair it.
  2228                     # `destroyed` will repair it.
  2229                     # In other case we can safely update cache on disk.
  2229                     # In other case we can safely update cache on disk.
  2230                     branchmap.updatecache(self.filtered('served'))
  2230                     branchmap.updatecache(self.filtered('served'))
  2231                 def runhooks():
  2231                 def runhooks():
       
  2232                     # These hooks run when the lock releases, not when the
       
  2233                     # transaction closes. So it's possible for the changelog
       
  2234                     # to have changed since we last saw it.
       
  2235                     if clstart >= len(self):
       
  2236                         return
       
  2237 
  2232                     # forcefully update the on-disk branch cache
  2238                     # forcefully update the on-disk branch cache
  2233                     self.ui.debug("updating the branch cache\n")
  2239                     self.ui.debug("updating the branch cache\n")
  2234                     self.hook("changegroup", node=hex(cl.node(clstart)),
  2240                     self.hook("changegroup", node=hex(cl.node(clstart)),
  2235                               source=srctype, url=url)
  2241                               source=srctype, url=url)
  2236 
  2242