Mercurial > hg
diff mercurial/branchmap.py @ 31381:7359157b9e46
branchmap: fix python 2.6 by using util.buffer() instead of passing bytearray
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 12 Mar 2017 19:47:51 -0400 |
parents | 7dd2f51f38ac |
children | a5bad127128d |
line wrap: on
line diff
--- 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