Mercurial > hg
changeset 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 | 65d93d712777 |
children | c9fd842dc886 |
files | mercurial/branchmap.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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