Show More
@@ -118,7 +118,7 b' class flagprocessorsmixin(object):' | |||
|
118 | 118 | processed text and ``validatehash`` is a bool indicating whether the |
|
119 | 119 | returned text should be checked for hash integrity. |
|
120 | 120 | """ |
|
121 |
return |
|
|
121 | return _processflagsfunc(self, text, flags, 'read') | |
|
122 | 122 | |
|
123 | 123 | def _processflagswrite(self, text, flags, sidedata): |
|
124 | 124 | """Inspect revision data flags and applies write transformations defined |
@@ -136,7 +136,7 b' class flagprocessorsmixin(object):' | |||
|
136 | 136 | processed text and ``validatehash`` is a bool indicating whether the |
|
137 | 137 | returned text should be checked for hash integrity. |
|
138 | 138 | """ |
|
139 |
return |
|
|
139 | return _processflagsfunc(self, text, flags, 'write', | |
|
140 | 140 |
|
|
141 | 141 | |
|
142 | 142 | def _processflagsraw(self, text, flags): |
@@ -155,9 +155,13 b' class flagprocessorsmixin(object):' | |||
|
155 | 155 | processed text and ``validatehash`` is a bool indicating whether the |
|
156 | 156 | returned text should be checked for hash integrity. |
|
157 | 157 | """ |
|
158 |
return |
|
|
158 | return _processflagsfunc(self, text, flags, 'raw')[1] | |
|
159 | 159 | |
|
160 |
|
|
|
160 | def _processflagsfunc(revlog, text, flags, operation, sidedata=None): | |
|
161 | """internal function to process flag on a revlog | |
|
162 | ||
|
163 | This function is private to this module, code should never needs to call it | |
|
164 | directly.""" | |
|
161 | 165 |
|
|
162 | 166 |
|
|
163 | 167 |
|
@@ -166,7 +170,7 b' class flagprocessorsmixin(object):' | |||
|
166 | 170 |
|
|
167 | 171 |
|
|
168 | 172 |
|
|
169 |
|
|
|
173 | raise revlog._flagserrorclass(_("incompatible revision flag '%#x'") % | |
|
170 | 174 |
|
|
171 | 175 |
|
|
172 | 176 |
|
@@ -182,21 +186,21 b' class flagprocessorsmixin(object):' | |||
|
182 | 186 |
|
|
183 | 187 |
|
|
184 | 188 | |
|
185 |
|
|
|
189 | if flag not in revlog._flagprocessors: | |
|
186 | 190 |
|
|
187 |
|
|
|
191 | raise revlog._flagserrorclass(message) | |
|
188 | 192 | |
|
189 |
|
|
|
193 | processor = revlog._flagprocessors[flag] | |
|
190 | 194 |
|
|
191 | 195 |
|
|
192 | 196 | |
|
193 | 197 |
|
|
194 |
|
|
|
198 | vhash = rawtransform(revlog, text) | |
|
195 | 199 |
|
|
196 |
|
|
|
200 | text, vhash, s = readtransform(revlog, text) | |
|
197 | 201 |
|
|
198 | 202 |
|
|
199 |
|
|
|
203 | text, vhash = writetransform(revlog, text, sidedata) | |
|
200 | 204 |
|
|
201 | 205 | |
|
202 | 206 |
|
General Comments 0
You need to be logged in to leave comments.
Login now