##// END OF EJS Templates
transaction: track new obsmarkers in the 'changes' mapping...
marmoute -
r33248:a5cb2e44 default
parent child Browse files
Show More
@@ -1083,6 +1083,7 b' class localrepository(object):'
1083 validator=validate,
1083 validator=validate,
1084 releasefn=releasefn)
1084 releasefn=releasefn)
1085 tr.changes['revs'] = set()
1085 tr.changes['revs'] = set()
1086 tr.changes['obsmarkers'] = set()
1086
1087
1087 tr.hookargs['txnid'] = txnid
1088 tr.hookargs['txnid'] = txnid
1088 # note: writing the fncache only during finalize mean that the file is
1089 # note: writing the fncache only during finalize mean that the file is
@@ -613,6 +613,9 b' class obsstore(object):'
613 # XXX: f.close() == filecache invalidation == obsstore rebuilt.
613 # XXX: f.close() == filecache invalidation == obsstore rebuilt.
614 # call 'filecacheentry.refresh()' here
614 # call 'filecacheentry.refresh()' here
615 f.close()
615 f.close()
616 addedmarkers = transaction.changes.get('obsmarkers')
617 if addedmarkers is not None:
618 addedmarkers.update(new)
616 self._addmarkers(new)
619 self._addmarkers(new)
617 # new marker *may* have changed several set. invalidate the cache.
620 # new marker *may* have changed several set. invalidate the cache.
618 self.caches.clear()
621 self.caches.clear()
General Comments 0
You need to be logged in to leave comments. Login now