Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/filelog.py @ 49877:152d9c011bcd
changegroup: add `delta_base_reuse_policy` argument
The argument available through function from changegroup.apply to
`revlog.apply` allow to override the revlog configuration in terms of
delta-base-reuse policy when searching for a delta to store a revision.
It will be put to use in the next changesets.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 03 Dec 2022 01:31:23 +0100 |
parents | 35d4c2124073 |
children | 87f0155d68aa |
comparison
equal
deleted
inserted
replaced
49876:4188e75af983 | 49877:152d9c011bcd |
---|---|
152 transaction, | 152 transaction, |
153 addrevisioncb=None, | 153 addrevisioncb=None, |
154 duplicaterevisioncb=None, | 154 duplicaterevisioncb=None, |
155 maybemissingparents=False, | 155 maybemissingparents=False, |
156 debug_info=None, | 156 debug_info=None, |
157 delta_base_reuse_policy=None, | |
157 ): | 158 ): |
158 if maybemissingparents: | 159 if maybemissingparents: |
159 raise error.Abort( | 160 raise error.Abort( |
160 _( | 161 _( |
161 b'revlog storage does not support missing ' | 162 b'revlog storage does not support missing ' |
173 linkmapper, | 174 linkmapper, |
174 transaction, | 175 transaction, |
175 addrevisioncb=addrevisioncb, | 176 addrevisioncb=addrevisioncb, |
176 duplicaterevisioncb=duplicaterevisioncb, | 177 duplicaterevisioncb=duplicaterevisioncb, |
177 debug_info=debug_info, | 178 debug_info=debug_info, |
179 delta_base_reuse_policy=delta_base_reuse_policy, | |
178 ) | 180 ) |
179 | 181 |
180 def getstrippoint(self, minlink): | 182 def getstrippoint(self, minlink): |
181 return self._revlog.getstrippoint(minlink) | 183 return self._revlog.getstrippoint(minlink) |
182 | 184 |