equal
deleted
inserted
replaced
533 |
533 |
534 This function exists because creating a changectx object |
534 This function exists because creating a changectx object |
535 just to access this is costly.""" |
535 just to access this is costly.""" |
536 extra = self.read(rev)[5] |
536 extra = self.read(rev)[5] |
537 return encoding.tolocal(extra.get("branch")), 'close' in extra |
537 return encoding.tolocal(extra.get("branch")), 'close' in extra |
|
538 |
|
539 def _addrevision(self, node, rawtext, transaction, *args, **kwargs): |
|
540 # overlay over the standard revlog._addrevision to track the new |
|
541 # revision on the transaction. |
|
542 rev = len(self) |
|
543 node = super(changelog, self)._addrevision(node, rawtext, transaction, |
|
544 *args, **kwargs) |
|
545 revs = transaction.changes.get('revs') |
|
546 if revs is not None: |
|
547 revs.add(rev) |
|
548 return node |