##// END OF EJS Templates
branchmap: fix python 2.6 by using util.buffer() instead of passing bytearray
Augie Fackler -
r31381:7359157b default
parent child Browse files
Show More
@@ -408,7 +408,8 b' class revbranchcache(object):'
408
408
409 # fast path: extract data from cache, use it if node is matching
409 # fast path: extract data from cache, use it if node is matching
410 reponode = changelog.node(rev)[:_rbcnodelen]
410 reponode = changelog.node(rev)[:_rbcnodelen]
411 cachenode, branchidx = unpack_from(_rbcrecfmt, self._rbcrevs, rbcrevidx)
411 cachenode, branchidx = unpack_from(
412 _rbcrecfmt, util.buffer(self._rbcrevs), rbcrevidx)
412 close = bool(branchidx & _rbccloseflag)
413 close = bool(branchidx & _rbccloseflag)
413 if close:
414 if close:
414 branchidx &= _rbcbranchidxmask
415 branchidx &= _rbcbranchidxmask
General Comments 0
You need to be logged in to leave comments. Login now