##// END OF EJS Templates
localrepo: run cache-warming transaction callback before report callback...
Martin von Zweigbergk -
r35767:3a3b59bb default
parent child Browse files
Show More
@@ -1322,7 +1322,11 b' class localrepository(object):'
1322 **pycompat.strkwargs(hookargs))
1322 **pycompat.strkwargs(hookargs))
1323 reporef()._afterlock(hookfunc)
1323 reporef()._afterlock(hookfunc)
1324 tr.addfinalize('txnclose-hook', txnclosehook)
1324 tr.addfinalize('txnclose-hook', txnclosehook)
1325 tr.addpostclose('warms-cache', self._buildcacheupdater(tr))
1325 # Include a leading "-" to make it happen before the transaction summary
1326 # reports registered via scmutil.registersummarycallback() whose names
1327 # are 00-txnreport etc. That way, the caches will be warm when the
1328 # callbacks run.
1329 tr.addpostclose('-warm-cache', self._buildcacheupdater(tr))
1326 def txnaborthook(tr2):
1330 def txnaborthook(tr2):
1327 """To be run if transaction is aborted
1331 """To be run if transaction is aborted
1328 """
1332 """
@@ -171,6 +171,6 b' client only pulls down 1 changeset'
171 bundle2-input-part: total payload size 24
171 bundle2-input-part: total payload size 24
172 bundle2-input-bundle: 2 parts total
172 bundle2-input-bundle: 2 parts total
173 checking for updated bookmarks
173 checking for updated bookmarks
174 updating the branch cache
174 new changesets bec0734cd68e
175 new changesets bec0734cd68e
175 updating the branch cache
176 (run 'hg heads' to see heads, 'hg merge' to merge)
176 (run 'hg heads' to see heads, 'hg merge' to merge)
General Comments 0
You need to be logged in to leave comments. Login now