##// END OF EJS Templates
changelog: keep track of duplicated node in the transaction adding them...
Boris Feld -
r39923:a3095bc4 default
parent child Browse files
Show More
@@ -545,3 +545,10 b' class changelog(revlog.revlog):'
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))
General Comments 0
You need to be logged in to leave comments. Login now