mercurial/pvec.py
changeset 43115 4aa72cdf616f
parent 43077 687b865b95ad
child 43451 10662ac7849e
child 43511 271af23d01a9
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):