Comments
Patch
@@ -451,6 +451,18 @@ class revbranchcache(object):
self._setcachedata(rev, reponode, branchidx)
return b, close
+ def setdata(self, branch, rev, node, close):
+ """add new data information to the cache"""
+ if branch in self._namesreverse:
+ branchidx = self._namesreverse[branch]
+ else:
+ branchidx = len(self._names)
+ self._names.append(branch)
+ self._namesreverse[branch] = branchidx
+ if close:
+ branchidx |= _rbccloseflag
+ self._setcachedata(rev, node, branchidx)
+
def _setcachedata(self, rev, node, branchidx):
"""Writes the node's branch data to the in-memory cache data."""
if rev == nullrev: