comparison mercurial/interfaces/repository.py @ 46509:7a93b7b3dc2d

revlog: change addgroup callbacks to take revision numbers Differential Revision: https://phab.mercurial-scm.org/D9883
author Joerg Sonnenberger <joerg@bec.de>
date Wed, 27 Jan 2021 02:34:51 +0100
parents f7b61ad3c64a
children e8c11a2c96c0
comparison
equal deleted inserted replaced
46508:f7b61ad3c64a 46509:7a93b7b3dc2d
772 ``alwayscache`` instructs the lower layers to cache the content of the 772 ``alwayscache`` instructs the lower layers to cache the content of the
773 newly added revision, even if it needs to be explicitly computed. 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 774 This used to be the default when ``addrevisioncb`` was provided up to
775 Mercurial 5.8. 775 Mercurial 5.8.
776 776
777 ``addrevisioncb`` should be called for each node as it is committed. 777 ``addrevisioncb`` should be called for each new rev as it is committed.
778 ``duplicaterevisioncb`` should be called for each pre-existing node. 778 ``duplicaterevisioncb`` should be called for all revs with a
779 pre-existing node.
779 780
780 ``maybemissingparents`` is a bool indicating whether the incoming 781 ``maybemissingparents`` is a bool indicating whether the incoming
781 data may reference parents/ancestor revisions that aren't present. 782 data may reference parents/ancestor revisions that aren't present.
782 This flag is set when receiving data into a "shallow" store that 783 This flag is set when receiving data into a "shallow" store that
783 doesn't hold all history. 784 doesn't hold all history.