Show More
@@ -894,7 +894,7 b' class revlog:' | |||||
894 | except KeyError: |
|
894 | except KeyError: | |
895 | return False |
|
895 | return False | |
896 |
|
896 | |||
897 | def candelta(self, baserev, rev): |
|
897 | def _candelta(self, baserev, rev): | |
898 | """whether two revisions (baserev, rev) can be delta-ed or not""" |
|
898 | """whether two revisions (baserev, rev) can be delta-ed or not""" | |
899 | # Disable delta if either rev requires a content-changing flag |
|
899 | # Disable delta if either rev requires a content-changing flag | |
900 | # processor (ex. LFS). This is because such flag processor can alter |
|
900 | # processor (ex. LFS). This is because such flag processor can alter | |
@@ -3105,7 +3105,7 b' class revlog:' | |||||
3105 | nodesorder, |
|
3105 | nodesorder, | |
3106 | revlogrevisiondelta, |
|
3106 | revlogrevisiondelta, | |
3107 | deltaparentfn=self.deltaparent, |
|
3107 | deltaparentfn=self.deltaparent, | |
3108 | candeltafn=self.candelta, |
|
3108 | candeltafn=self._candelta, | |
3109 | rawsizefn=self.rawsize, |
|
3109 | rawsizefn=self.rawsize, | |
3110 | revdifffn=self.revdiff, |
|
3110 | revdifffn=self.revdiff, | |
3111 | flagsfn=self.flags, |
|
3111 | flagsfn=self.flags, |
@@ -158,7 +158,7 b" def addgroupcopy(rlog, tr, destname=b'_d" | |||||
158 | else: |
|
158 | else: | |
159 | # suboptimal deltaparent |
|
159 | # suboptimal deltaparent | |
160 | deltaparent = min(0, parentrev) |
|
160 | deltaparent = min(0, parentrev) | |
161 | if not rlog.candelta(deltaparent, r): |
|
161 | if not rlog._candelta(deltaparent, r): | |
162 | deltaparent = -1 |
|
162 | deltaparent = -1 | |
163 | return { |
|
163 | return { | |
164 | b'node': rlog.node(r), |
|
164 | b'node': rlog.node(r), |
General Comments 0
You need to be logged in to leave comments.
Login now