# HG changeset patch # User Augie Fackler # Date 2017-03-12 05:49:19 # Node ID 279430eeefdb76edcbe1f219f5ebb2c274802b71 # Parent 2a18e9e6ca439d08e305769b1f1de841aad7fc13 branchmap: don't use buffer() on Python 3 This is certainly slower than the Python 2 code, but it works, and we can revisit it later if it's a problem. diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py --- a/mercurial/branchmap.py +++ b/mercurial/branchmap.py @@ -409,7 +409,7 @@ class revbranchcache(object): # fast path: extract data from cache, use it if node is matching reponode = changelog.node(rev)[:_rbcnodelen] cachenode, branchidx = unpack( - _rbcrecfmt, buffer(self._rbcrevs, rbcrevidx, _rbcrecsize)) + _rbcrecfmt, util.buffer(self._rbcrevs, rbcrevidx, _rbcrecsize)) close = bool(branchidx & _rbccloseflag) if close: branchidx &= _rbcbranchidxmask