mercurial/pvec.py
changeset 50928 d718eddf01d9
parent 49284 d44e3c45f0e4
child 51287 f15cb5111a1e
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
   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, "_pveccache"):
   162     if not hasattr(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 range(ctx.rev() + 1):
   167         for n in range(ctx.rev() + 1):