##// END OF EJS Templates
sidedata: simply read p2copies files from the `ChangingFiles` object
marmoute -
r46149:147fb889 default
parent child Browse files
Show More
@@ -27,8 +27,6 b' from .utils import ('
27 stringutil,
27 stringutil,
28 )
28 )
29
29
30 from .revlogutils import sidedata as sidedatamod
31
32 _defaultextra = {b'branch': b'default'}
30 _defaultextra = {b'branch': b'default'}
33
31
34
32
@@ -360,9 +358,7 b' class changelogrevision(object):'
360 @property
358 @property
361 def p2copies(self):
359 def p2copies(self):
362 if self._cpsd:
360 if self._cpsd:
363 rawcopies = self._sidedata.get(sidedatamod.SD_P2COPIES)
361 return self.changes.copied_from_p2
364 if not rawcopies:
365 return {}
366 else:
362 else:
367 rawcopies = self.extra.get(b'p2copies')
363 rawcopies = self.extra.get(b'p2copies')
368 if rawcopies is None:
364 if rawcopies is None:
General Comments 0
You need to be logged in to leave comments. Login now