Show More
@@ -535,3 +535,14 b' class changelog(revlog.revlog):' | |||
|
535 | 535 | just to access this is costly.""" |
|
536 | 536 | extra = self.read(rev)[5] |
|
537 | 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 |
@@ -1072,6 +1072,7 b' class localrepository(object):' | |||
|
1072 | 1072 | self.store.createmode, |
|
1073 | 1073 | validator=validate, |
|
1074 | 1074 | releasefn=releasefn) |
|
1075 | tr.changes['revs'] = set() | |
|
1075 | 1076 | |
|
1076 | 1077 | tr.hookargs['txnid'] = txnid |
|
1077 | 1078 | # note: writing the fncache only during finalize mean that the file is |
General Comments 0
You need to be logged in to leave comments.
Login now