equal
deleted
inserted
replaced
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): |