Mercurial > hg
comparison mercurial/changelog.py @ 39887:a3095bc47217
changelog: keep track of duplicated node in the transaction adding them
The transaction is already tracking the new nodes. We now tracks the
"duplicates" in the same location.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 20 Sep 2018 11:18:28 +0200 |
parents | b63dee7bd0d9 |
children | e7a2cc84dbc0 |
comparison
equal
deleted
inserted
replaced
39886:debc4ee597e7 | 39887:a3095bc47217 |
---|---|
543 | 543 |
544 This function exists because creating a changectx object | 544 This function exists because creating a changectx object |
545 just to access this is costly.""" | 545 just to access this is costly.""" |
546 extra = self.read(rev)[5] | 546 extra = self.read(rev)[5] |
547 return encoding.tolocal(extra.get("branch")), 'close' in extra | 547 return encoding.tolocal(extra.get("branch")), 'close' in extra |
548 | |
549 def _nodeduplicatecallback(self, transaction, node): | |
550 # keep track of revisions that got "re-added", eg: unbunde of know rev. | |
551 # | |
552 # We track them in a list to preserve their order from the source bundle | |
553 duplicates = transaction.changes.setdefault('revduplicates', []) | |
554 duplicates.append(self.rev(node)) |