mercurial/branchmap.py
changeset 31381 7359157b9e46
parent 31371 7dd2f51f38ac
child 31454 a5bad127128d
--- a/mercurial/branchmap.py	Sun Mar 12 16:44:01 2017 -0700
+++ b/mercurial/branchmap.py	Sun Mar 12 19:47:51 2017 -0400
@@ -408,7 +408,8 @@
 
         # fast path: extract data from cache, use it if node is matching
         reponode = changelog.node(rev)[:_rbcnodelen]
-        cachenode, branchidx = unpack_from(_rbcrecfmt, self._rbcrevs, rbcrevidx)
+        cachenode, branchidx = unpack_from(
+            _rbcrecfmt, util.buffer(self._rbcrevs), rbcrevidx)
         close = bool(branchidx & _rbccloseflag)
         if close:
             branchidx &= _rbcbranchidxmask