Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changelog.py @ 46561: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 | e9901d01d135 |
line wrap: on
line diff
--- a/mercurial/changelog.py Wed Jan 27 01:43:17 2021 +0100 +++ b/mercurial/changelog.py Wed Jan 27 02:34:51 2021 +0100 @@ -610,9 +610,9 @@ just to access this is costly.""" return self.changelogrevision(rev).branchinfo - def _nodeduplicatecallback(self, transaction, node): + def _nodeduplicatecallback(self, transaction, rev): # keep track of revisions that got "re-added", eg: unbunde of know rev. # # We track them in a list to preserve their order from the source bundle duplicates = transaction.changes.setdefault(b'revduplicates', []) - duplicates.append(self.rev(node)) + duplicates.append(rev)