comparison mercurial/revlog.py @ 51004:39fa0b948f5a

revlog: make the `candelta` method private It is only used internally, so lets make it clear.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Sep 2023 23:10:05 +0200
parents 273434748051
children 569eb5d0420d
comparison
equal deleted inserted replaced
51003:273434748051 51004:39fa0b948f5a
892 self.rev(node) 892 self.rev(node)
893 return True 893 return True
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
901 # the rawtext content that the delta will be based on, and two clients 901 # the rawtext content that the delta will be based on, and two clients
902 # could have a same revlog node with different flags (i.e. different 902 # could have a same revlog node with different flags (i.e. different
3103 self, 3103 self,
3104 nodes, 3104 nodes,
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,
3112 deltamode=deltamode, 3112 deltamode=deltamode,
3113 revisiondata=revisiondata, 3113 revisiondata=revisiondata,