# HG changeset patch # User Augie Fackler # Date 2017-03-12 23:47:51 # Node ID 7359157b9e46908645cc9cef62a5cf46224dba71 # Parent 65d93d7127777c184f7af0c9aeb4530f93f14094 branchmap: fix python 2.6 by using util.buffer() instead of passing bytearray diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py --- a/mercurial/branchmap.py +++ b/mercurial/branchmap.py @@ -408,7 +408,8 @@ class revbranchcache(object): # 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