Mercurial > hg
comparison mercurial/unionrepo.py @ 45788:a5206e71c536
revlog: extend addgroup() with callback for duplicates
The addgroup() interface currently doesn't allow the caller to keep
track of duplicated nodes except by looking at the returned node list.
Add an optional second callback for this purpose and change the return
type to a boolean. This allows follow-up changes to use more efficient
storage for the node list in places that are memory-sensitive.
Differential Revision: https://phab.mercurial-scm.org/D9231
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Sun, 18 Oct 2020 22:18:02 +0200 |
parents | f212cc5ffceb |
children | b6f4a1df91bd |
comparison
equal
deleted
inserted
replaced
45787:225e513c444e | 45788:a5206e71c536 |
---|---|
127 self, | 127 self, |
128 deltas, | 128 deltas, |
129 linkmapper, | 129 linkmapper, |
130 transaction, | 130 transaction, |
131 addrevisioncb=None, | 131 addrevisioncb=None, |
132 duplicaterevisioncb=None, | |
132 maybemissingparents=False, | 133 maybemissingparents=False, |
133 ): | 134 ): |
134 raise NotImplementedError | 135 raise NotImplementedError |
135 | 136 |
136 def strip(self, minlink, transaction): | 137 def strip(self, minlink, transaction): |