comparison mercurial/branchmap.py @ 33865:af20468eb0a4

merge with stable
author Sean Farley <sean@farley.io>
date Mon, 21 Aug 2017 21:35:06 -0700
parents 1814ca418b30
children abf91c4f9608
comparison
equal deleted inserted replaced
33864:70354bd4f19b 33865:af20468eb0a4
404 if len(self._rbcrevs) < rbcrevidx + _rbcrecsize: 404 if len(self._rbcrevs) < rbcrevidx + _rbcrecsize:
405 return self._branchinfo(rev) 405 return self._branchinfo(rev)
406 406
407 # fast path: extract data from cache, use it if node is matching 407 # fast path: extract data from cache, use it if node is matching
408 reponode = changelog.node(rev)[:_rbcnodelen] 408 reponode = changelog.node(rev)[:_rbcnodelen]
409 cachenode, branchidx = unpack_from(_rbcrecfmt, self._rbcrevs, rbcrevidx) 409 cachenode, branchidx = unpack_from(
410 _rbcrecfmt, util.buffer(self._rbcrevs), rbcrevidx)
410 close = bool(branchidx & _rbccloseflag) 411 close = bool(branchidx & _rbccloseflag)
411 if close: 412 if close:
412 branchidx &= _rbcbranchidxmask 413 branchidx &= _rbcbranchidxmask
413 if cachenode == '\0\0\0\0': 414 if cachenode == '\0\0\0\0':
414 pass 415 pass