Show More
@@ -636,7 +636,7 b' class revlog(object):' | |||||
636 | if l >= 0: |
|
636 | if l >= 0: | |
637 | return l |
|
637 | return l | |
638 |
|
638 | |||
639 |
t = self.r |
|
639 | t = self.rawdata(rev) | |
640 | return len(t) |
|
640 | return len(t) | |
641 |
|
641 | |||
642 | def size(self, rev): |
|
642 | def size(self, rev): | |
@@ -1596,8 +1596,8 b' class revlog(object):' | |||||
1596 | if rev1 != nullrev and self.deltaparent(rev2) == rev1: |
|
1596 | if rev1 != nullrev and self.deltaparent(rev2) == rev1: | |
1597 | return bytes(self._chunk(rev2)) |
|
1597 | return bytes(self._chunk(rev2)) | |
1598 |
|
1598 | |||
1599 |
return mdiff.textdiff(self.r |
|
1599 | return mdiff.textdiff(self.rawdata(rev1), | |
1600 |
self.r |
|
1600 | self.rawdata(rev2)) | |
1601 |
|
1601 | |||
1602 | def revision(self, nodeorrev, _df=None, raw=False): |
|
1602 | def revision(self, nodeorrev, _df=None, raw=False): | |
1603 | """return an uncompressed revision of a given node or revision |
|
1603 | """return an uncompressed revision of a given node or revision | |
@@ -2435,7 +2435,7 b' class revlog(object):' | |||||
2435 | cachedelta = (dp, bytes(self._chunk(rev))) |
|
2435 | cachedelta = (dp, bytes(self._chunk(rev))) | |
2436 |
|
2436 | |||
2437 | if not cachedelta: |
|
2437 | if not cachedelta: | |
2438 |
rawtext = self.r |
|
2438 | rawtext = self.rawdata(rev) | |
2439 |
|
2439 | |||
2440 |
|
2440 | |||
2441 | if deltareuse == self.DELTAREUSEFULLADD: |
|
2441 | if deltareuse == self.DELTAREUSEFULLADD: | |
@@ -2513,7 +2513,7 b' class revlog(object):' | |||||
2513 | 'revision having delta stored')) |
|
2513 | 'revision having delta stored')) | |
2514 | rawtext = self._chunk(rev) |
|
2514 | rawtext = self._chunk(rev) | |
2515 | else: |
|
2515 | else: | |
2516 |
rawtext = self.r |
|
2516 | rawtext = self.rawdata(rev) | |
2517 |
|
2517 | |||
2518 | newrl.addrawrevision(rawtext, tr, self.linkrev(rev), p1, p2, node, |
|
2518 | newrl.addrawrevision(rawtext, tr, self.linkrev(rev), p1, p2, node, | |
2519 | self.flags(rev)) |
|
2519 | self.flags(rev)) | |
@@ -2571,8 +2571,8 b' class revlog(object):' | |||||
2571 | # rawtext[0:2]=='\1\n'| False | True | True | ? |
|
2571 | # rawtext[0:2]=='\1\n'| False | True | True | ? | |
2572 | # |
|
2572 | # | |
2573 | # "rawtext" means the raw text stored in revlog data, which |
|
2573 | # "rawtext" means the raw text stored in revlog data, which | |
2574 |
# could be retrieved by "r |
|
2574 | # could be retrieved by "rawdata(rev)". "text" | |
2575 |
# mentioned below is "revision(rev |
|
2575 | # mentioned below is "revision(rev)". | |
2576 | # |
|
2576 | # | |
2577 | # There are 3 different lengths stored physically: |
|
2577 | # There are 3 different lengths stored physically: | |
2578 | # 1. L1: rawsize, stored in revlog index |
|
2578 | # 1. L1: rawsize, stored in revlog index | |
@@ -2614,7 +2614,7 b' class revlog(object):' | |||||
2614 | self.revision(node) |
|
2614 | self.revision(node) | |
2615 |
|
2615 | |||
2616 | l1 = self.rawsize(rev) |
|
2616 | l1 = self.rawsize(rev) | |
2617 |
l2 = len(self.r |
|
2617 | l2 = len(self.rawdata(node)) | |
2618 |
|
2618 | |||
2619 | if l1 != l2: |
|
2619 | if l1 != l2: | |
2620 | yield revlogproblem( |
|
2620 | yield revlogproblem( |
General Comments 0
You need to be logged in to leave comments.
Login now