comparison mercurial/unionrepo.py @ 46373:711ba0f1057e

revlog: decouple caching from addrevision callback for addgroup For changesets, it is useful to cache the content as it will almost always be processed afterwards. For manifests on the other hand, the content is often not used directly as there is a fast path for deltas. Explicitly disable the cache in exchangev2's manifest handling for that reason. Differential Revision: https://phab.mercurial-scm.org/D9847
author Joerg Sonnenberger <joerg@bec.de>
date Wed, 20 Jan 2021 14:47:13 +0100
parents b6f4a1df91bd
children 6266d19556ad
comparison
equal deleted inserted replaced
46372:3e91d9978bec 46373:711ba0f1057e
126 def addgroup( 126 def addgroup(
127 self, 127 self,
128 deltas, 128 deltas,
129 linkmapper, 129 linkmapper,
130 transaction, 130 transaction,
131 alwayscache=False,
131 addrevisioncb=None, 132 addrevisioncb=None,
132 duplicaterevisioncb=None, 133 duplicaterevisioncb=None,
133 maybemissingparents=False, 134 maybemissingparents=False,
134 ): 135 ):
135 raise NotImplementedError 136 raise NotImplementedError