equal
deleted
inserted
replaced
140 bit = (hash(node) & 0xffffffff) % _vecbits |
140 bit = (hash(node) & 0xffffffff) % _vecbits |
141 return v ^ (1<<bit) |
141 return v ^ (1<<bit) |
142 |
142 |
143 def ctxpvec(ctx): |
143 def ctxpvec(ctx): |
144 '''construct a pvec for ctx while filling in the cache''' |
144 '''construct a pvec for ctx while filling in the cache''' |
145 r = ctx._repo |
145 r = ctx.repo() |
146 if not util.safehasattr(r, "_pveccache"): |
146 if not util.safehasattr(r, "_pveccache"): |
147 r._pveccache = {} |
147 r._pveccache = {} |
148 pvc = r._pveccache |
148 pvc = r._pveccache |
149 if ctx.rev() not in pvc: |
149 if ctx.rev() not in pvc: |
150 cl = r.changelog |
150 cl = r.changelog |