comparison mercurial/pvec.py @ 43115:4aa72cdf616f

py3: delete b'' prefix from safehasattr arguments Differential Revision: https://phab.mercurial-scm.org/D7029
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 06 Oct 2019 20:17:41 -0700
parents 687b865b95ad
children 10662ac7849e 271af23d01a9
comparison
equal deleted inserted replaced
43114:8197b395710e 43115:4aa72cdf616f
157 157
158 158
159 def ctxpvec(ctx): 159 def ctxpvec(ctx):
160 '''construct a pvec for ctx while filling in the cache''' 160 '''construct a pvec for ctx while filling in the cache'''
161 r = ctx.repo() 161 r = ctx.repo()
162 if not util.safehasattr(r, b"_pveccache"): 162 if not util.safehasattr(r, "_pveccache"):
163 r._pveccache = {} 163 r._pveccache = {}
164 pvc = r._pveccache 164 pvc = r._pveccache
165 if ctx.rev() not in pvc: 165 if ctx.rev() not in pvc:
166 cl = r.changelog 166 cl = r.changelog
167 for n in pycompat.xrange(ctx.rev() + 1): 167 for n in pycompat.xrange(ctx.rev() + 1):