Submitter | phabricator |
---|---|
Date | Aug. 11, 2017, 1:19 a.m. |
Message ID | <differential-rev-PHID-DREV-xluo4loebylvuwpcwpqe-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/22838/ |
State | Superseded |
Headers | show |
Comments
quark accepted this revision. quark added a comment. LGTM. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D330 To: glandium, #hg-reviewers, quark Cc: quark, mercurial-devel
indygreg accepted this revision. indygreg added a comment. This revision is now accepted and ready to land. This looks good. I'll queue this for stable when I get home. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D330 To: glandium, #hg-reviewers, quark, indygreg Cc: indygreg, quark, mercurial-devel
Patch
diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py --- a/mercurial/branchmap.py +++ b/mercurial/branchmap.py @@ -406,7 +406,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