equal
deleted
inserted
replaced
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 |