equal
deleted
inserted
replaced
348 base = index[rev][3] |
348 base = index[rev][3] |
349 while base != rev: |
349 while base != rev: |
350 rev = base |
350 rev = base |
351 base = index[rev][3] |
351 base = index[rev][3] |
352 return base |
352 return base |
|
353 def chainlen(self, rev): |
|
354 index = self.index |
|
355 generaldelta = self._generaldelta |
|
356 iterrev = rev |
|
357 e = index[iterrev] |
|
358 clen = 0 |
|
359 while iterrev != e[3]: |
|
360 clen += 1 |
|
361 if generaldelta: |
|
362 iterrev = e[3] |
|
363 else: |
|
364 iterrev -= 1 |
|
365 e = index[iterrev] |
|
366 return clen |
353 def flags(self, rev): |
367 def flags(self, rev): |
354 return self.index[rev][0] & 0xFFFF |
368 return self.index[rev][0] & 0xFFFF |
355 def rawsize(self, rev): |
369 def rawsize(self, rev): |
356 """return the length of the uncompressed text for a given revision""" |
370 """return the length of the uncompressed text for a given revision""" |
357 l = self.index[rev][2] |
371 l = self.index[rev][2] |