Show More
@@ -334,6 +334,7 b' class cg1unpacker(object):' | |||||
334 | deltas, |
|
334 | deltas, | |
335 | csmap, |
|
335 | csmap, | |
336 | trp, |
|
336 | trp, | |
|
337 | alwayscache=True, | |||
337 | addrevisioncb=onchangelog, |
|
338 | addrevisioncb=onchangelog, | |
338 | duplicaterevisioncb=ondupchangelog, |
|
339 | duplicaterevisioncb=ondupchangelog, | |
339 | ): |
|
340 | ): |
@@ -423,6 +423,7 b' def _processchangesetdata(repo, tr, objs' | |||||
423 | iterrevisions(), |
|
423 | iterrevisions(), | |
424 | linkrev, |
|
424 | linkrev, | |
425 | weakref.proxy(tr), |
|
425 | weakref.proxy(tr), | |
|
426 | alwayscache=True, | |||
426 | addrevisioncb=onchangeset, |
|
427 | addrevisioncb=onchangeset, | |
427 | duplicaterevisioncb=ondupchangeset, |
|
428 | duplicaterevisioncb=ondupchangeset, | |
428 | ) |
|
429 | ) |
@@ -769,7 +769,13 b' class ifilemutation(interfaceutil.Interf' | |||||
769 | ``nullid``, in which case the header from the delta can be ignored |
|
769 | ``nullid``, in which case the header from the delta can be ignored | |
770 | and the delta used as the fulltext. |
|
770 | and the delta used as the fulltext. | |
771 |
|
771 | |||
|
772 | ``alwayscache`` instructs the lower layers to cache the content of the | |||
|
773 | newly added revision, even if it needs to be explicitly computed. | |||
|
774 | This used to be the default when ``addrevisioncb`` was provided up to | |||
|
775 | Mercurial 5.8. | |||
|
776 | ||||
772 | ``addrevisioncb`` should be called for each node as it is committed. |
|
777 | ``addrevisioncb`` should be called for each node as it is committed. | |
|
778 | ``duplicaterevisioncb`` should be called for each pre-existing node. | |||
773 |
|
779 | |||
774 | ``maybemissingparents`` is a bool indicating whether the incoming |
|
780 | ``maybemissingparents`` is a bool indicating whether the incoming | |
775 | data may reference parents/ancestor revisions that aren't present. |
|
781 | data may reference parents/ancestor revisions that aren't present. |
@@ -1836,6 +1836,7 b' class manifestrevlog(object):' | |||||
1836 | deltas, |
|
1836 | deltas, | |
1837 | linkmapper, |
|
1837 | linkmapper, | |
1838 | transaction, |
|
1838 | transaction, | |
|
1839 | alwayscache=False, | |||
1839 | addrevisioncb=None, |
|
1840 | addrevisioncb=None, | |
1840 | duplicaterevisioncb=None, |
|
1841 | duplicaterevisioncb=None, | |
1841 | ): |
|
1842 | ): | |
@@ -1843,6 +1844,7 b' class manifestrevlog(object):' | |||||
1843 | deltas, |
|
1844 | deltas, | |
1844 | linkmapper, |
|
1845 | linkmapper, | |
1845 | transaction, |
|
1846 | transaction, | |
|
1847 | alwayscache=alwayscache, | |||
1846 | addrevisioncb=addrevisioncb, |
|
1848 | addrevisioncb=addrevisioncb, | |
1847 | duplicaterevisioncb=duplicaterevisioncb, |
|
1849 | duplicaterevisioncb=duplicaterevisioncb, | |
1848 | ) |
|
1850 | ) |
@@ -2375,6 +2375,7 b' class revlog(object):' | |||||
2375 | deltas, |
|
2375 | deltas, | |
2376 | linkmapper, |
|
2376 | linkmapper, | |
2377 | transaction, |
|
2377 | transaction, | |
|
2378 | alwayscache=False, | |||
2378 | addrevisioncb=None, |
|
2379 | addrevisioncb=None, | |
2379 | duplicaterevisioncb=None, |
|
2380 | duplicaterevisioncb=None, | |
2380 | ): |
|
2381 | ): | |
@@ -2475,7 +2476,7 b' class revlog(object):' | |||||
2475 | (baserev, delta), |
|
2476 | (baserev, delta), | |
2476 | ifh, |
|
2477 | ifh, | |
2477 | dfh, |
|
2478 | dfh, | |
2478 |
alwayscache= |
|
2479 | alwayscache=alwayscache, | |
2479 | deltacomputer=deltacomputer, |
|
2480 | deltacomputer=deltacomputer, | |
2480 | ) |
|
2481 | ) | |
2481 |
|
2482 |
@@ -128,6 +128,7 b' class unionrevlog(revlog.revlog):' | |||||
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, |
General Comments 0
You need to be logged in to leave comments.
Login now