360 |
360 |
361 return self._text[off[2] + 1 : off[3]].split(b'\n') |
361 return self._text[off[2] + 1 : off[3]].split(b'\n') |
362 |
362 |
363 @property |
363 @property |
364 def filesadded(self): |
364 def filesadded(self): |
365 rawindices = self.extra.get(b'filesadded') |
365 if sidedatamod.SD_FILESADDED in self._sidedata: |
|
366 rawindices = self._sidedata.get(sidedatamod.SD_FILESADDED) |
|
367 else: |
|
368 rawindices = self.extra.get(b'filesadded') |
366 if rawindices is None: |
369 if rawindices is None: |
367 return None |
370 return None |
368 return decodefileindices(self.files, rawindices) |
371 return decodefileindices(self.files, rawindices) |
369 |
372 |
370 @property |
373 @property |
371 def filesremoved(self): |
374 def filesremoved(self): |
372 rawindices = self.extra.get(b'filesremoved') |
375 if sidedatamod.SD_FILESREMOVED in self._sidedata: |
|
376 rawindices = self._sidedata.get(sidedatamod.SD_FILESREMOVED) |
|
377 else: |
|
378 rawindices = self.extra.get(b'filesremoved') |
373 if rawindices is None: |
379 if rawindices is None: |
374 return None |
380 return None |
375 return decodefileindices(self.files, rawindices) |
381 return decodefileindices(self.files, rawindices) |
376 |
382 |
377 @property |
383 @property |
378 def p1copies(self): |
384 def p1copies(self): |
379 rawcopies = self.extra.get(b'p1copies') |
385 if sidedatamod.SD_P1COPIES in self._sidedata: |
|
386 rawcopies = self._sidedata.get(sidedatamod.SD_P1COPIES) |
|
387 else: |
|
388 rawcopies = self.extra.get(b'p1copies') |
380 if rawcopies is None: |
389 if rawcopies is None: |
381 return None |
390 return None |
382 return decodecopies(self.files, rawcopies) |
391 return decodecopies(self.files, rawcopies) |
383 |
392 |
384 @property |
393 @property |
385 def p2copies(self): |
394 def p2copies(self): |
386 rawcopies = self.extra.get(b'p2copies') |
395 if sidedatamod.SD_P2COPIES in self._sidedata: |
|
396 rawcopies = self._sidedata.get(sidedatamod.SD_P2COPIES) |
|
397 else: |
|
398 rawcopies = self.extra.get(b'p2copies') |
387 if rawcopies is None: |
399 if rawcopies is None: |
388 return None |
400 return None |
389 return decodecopies(self.files, rawcopies) |
401 return decodecopies(self.files, rawcopies) |
390 |
402 |
391 @property |
403 @property |