Show More
@@ -118,8 +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 |
|
|
|
122 | return text, vhash, {} | |
|
121 | return self._processflagsfunc(text, flags, 'read') | |
|
123 | 122 | |
|
124 | 123 | def _processflagswrite(self, text, flags): |
|
125 | 124 | """Inspect revision data flags and applies write transformations defined |
@@ -137,7 +136,7 b' class flagprocessorsmixin(object):' | |||
|
137 | 136 | processed text and ``validatehash`` is a bool indicating whether the |
|
138 | 137 | returned text should be checked for hash integrity. |
|
139 | 138 | """ |
|
140 | return self._processflagsfunc(text, flags, 'write') | |
|
139 | return self._processflagsfunc(text, flags, 'write')[:2] | |
|
141 | 140 | |
|
142 | 141 | def _processflagsraw(self, text, flags): |
|
143 | 142 | """Inspect revision data flags to check is the content hash should be |
@@ -160,7 +159,7 b' class flagprocessorsmixin(object):' | |||
|
160 | 159 | def _processflagsfunc(self, text, flags, operation): |
|
161 | 160 | # fast path: no flag processors will run |
|
162 | 161 | if flags == 0: |
|
163 | return text, True | |
|
162 | return text, True, {} | |
|
164 | 163 | if operation not in ('read', 'write', 'raw'): |
|
165 | 164 | raise error.ProgrammingError(_("invalid '%s' operation") % |
|
166 | 165 | operation) |
@@ -175,6 +174,7 b' class flagprocessorsmixin(object):' | |||
|
175 | 174 | if operation == 'write': |
|
176 | 175 | orderedflags = reversed(orderedflags) |
|
177 | 176 | |
|
177 | outsidedata = {} | |
|
178 | 178 | for flag in orderedflags: |
|
179 | 179 | # If a flagprocessor has been registered for a known flag, apply the |
|
180 | 180 | # related operation transform and update result tuple. |
@@ -197,4 +197,4 b' class flagprocessorsmixin(object):' | |||
|
197 | 197 | text, vhash = writetransform(self, text) |
|
198 | 198 | validatehash = validatehash and vhash |
|
199 | 199 | |
|
200 | return text, validatehash | |
|
200 | return text, validatehash, outsidedata |
General Comments 0
You need to be logged in to leave comments.
Login now