Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
46560:f7b61ad3c64a | 46561:7a93b7b3dc2d |
---|---|
608 | 608 |
609 This function exists because creating a changectx object | 609 This function exists because creating a changectx object |
610 just to access this is costly.""" | 610 just to access this is costly.""" |
611 return self.changelogrevision(rev).branchinfo | 611 return self.changelogrevision(rev).branchinfo |
612 | 612 |
613 def _nodeduplicatecallback(self, transaction, node): | 613 def _nodeduplicatecallback(self, transaction, rev): |
614 # keep track of revisions that got "re-added", eg: unbunde of know rev. | 614 # keep track of revisions that got "re-added", eg: unbunde of know rev. |
615 # | 615 # |
616 # We track them in a list to preserve their order from the source bundle | 616 # We track them in a list to preserve their order from the source bundle |
617 duplicates = transaction.changes.setdefault(b'revduplicates', []) | 617 duplicates = transaction.changes.setdefault(b'revduplicates', []) |
618 duplicates.append(self.rev(node)) | 618 duplicates.append(rev) |