Show More
@@ -216,6 +216,7 b' class changelogrevision(object):' | |||||
216 | '_text', |
|
216 | '_text', | |
217 | '_sidedata', |
|
217 | '_sidedata', | |
218 | '_cpsd', |
|
218 | '_cpsd', | |
|
219 | '_changes', | |||
219 | ) |
|
220 | ) | |
220 |
|
221 | |||
221 | def __new__(cls, text, sidedata, cpsd): |
|
222 | def __new__(cls, text, sidedata, cpsd): | |
@@ -252,6 +253,7 b' class changelogrevision(object):' | |||||
252 | self._text = text |
|
253 | self._text = text | |
253 | self._sidedata = sidedata |
|
254 | self._sidedata = sidedata | |
254 | self._cpsd = cpsd |
|
255 | self._cpsd = cpsd | |
|
256 | self._changes = None | |||
255 |
|
257 | |||
256 | return self |
|
258 | return self | |
257 |
|
259 | |||
@@ -301,6 +303,20 b' class changelogrevision(object):' | |||||
301 | return decodeextra(raw) |
|
303 | return decodeextra(raw) | |
302 |
|
304 | |||
303 | @property |
|
305 | @property | |
|
306 | def changes(self): | |||
|
307 | if self._changes is not None: | |||
|
308 | return self._changes | |||
|
309 | changes = metadata.ChangingFiles( | |||
|
310 | touched=self.files or (), | |||
|
311 | added=self.filesadded or (), | |||
|
312 | removed=self.filesremoved or (), | |||
|
313 | p1_copies=self.p1copies or {}, | |||
|
314 | p2_copies=self.p2copies or {}, | |||
|
315 | ) | |||
|
316 | self._changes = changes | |||
|
317 | return changes | |||
|
318 | ||||
|
319 | @property | |||
304 | def files(self): |
|
320 | def files(self): | |
305 | off = self._offsets |
|
321 | off = self._offsets | |
306 | if off[2] == off[3]: |
|
322 | if off[2] == off[3]: |
General Comments 0
You need to be logged in to leave comments.
Login now