mercurial/changelog.py
changeset 46509 7a93b7b3dc2d
parent 46508 f7b61ad3c64a
child 46607 e9901d01d135
equal deleted inserted replaced
46508:f7b61ad3c64a 46509: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)