equal
deleted
inserted
replaced
179 |
179 |
180 for x in xrange(chunk): |
180 for x in xrange(chunk): |
181 if i + x >= count: |
181 if i + x >= count: |
182 l[chunk - x:] = [0] * (chunk - x) |
182 l[chunk - x:] = [0] * (chunk - x) |
183 break |
183 break |
184 if full != None: |
184 if full is not None: |
185 l[x] = repo[i + x] |
185 l[x] = repo[i + x] |
186 l[x].changeset() # force reading |
186 l[x].changeset() # force reading |
187 else: |
187 else: |
188 l[x] = 1 |
188 l[x] = 1 |
189 for x in xrange(chunk - 1, -1, -1): |
189 for x in xrange(chunk - 1, -1, -1): |
190 if l[x] != 0: |
190 if l[x] != 0: |
191 yield (i + x, full != None and l[x] or None) |
191 yield (i + x, full is not None and l[x] or None) |
192 if i == 0: |
192 if i == 0: |
193 break |
193 break |
194 |
194 |
195 # calculate and return the reachability bitmask for sha |
195 # calculate and return the reachability bitmask for sha |
196 def is_reachable(ar, reachable, sha): |
196 def is_reachable(ar, reachable, sha): |