##// END OF EJS Templates
context: clarify the various mode in the filesadded method...
marmoute -
r43291:008e74b3 default
parent child Browse files
Show More
@@ -453,13 +453,20 b' class changectx(basectx):'
453 modified.difference_update(self.filesadded())
453 modified.difference_update(self.filesadded())
454 modified.difference_update(self.filesremoved())
454 modified.difference_update(self.filesremoved())
455 return sorted(modified)
455 return sorted(modified)
456
456 def filesadded(self):
457 def filesadded(self):
457 source = self._repo.ui.config('experimental', 'copies.read-from')
458 source = self._repo.ui.config('experimental', 'copies.read-from')
458 if (source == 'changeset-only' or
459 filesadded = self._changeset.filesadded
459 (source == 'compatibility' and
460 if source == 'changeset-only':
460 self._changeset.filesadded is not None)):
461 if filesadded is None:
461 return self._changeset.filesadded or []
462 filesadded = []
462 return scmutil.computechangesetfilesadded(self)
463 elif source == 'compatibility':
464 if filesadded is None:
465 filesadded = scmutil.computechangesetfilesadded(self)
466 else:
467 filesadded = scmutil.computechangesetfilesadded(self)
468 return filesadded
469
463 def filesremoved(self):
470 def filesremoved(self):
464 source = self._repo.ui.config('experimental', 'copies.read-from')
471 source = self._repo.ui.config('experimental', 'copies.read-from')
465 if (source == 'changeset-only' or
472 if (source == 'changeset-only' or
General Comments 0
You need to be logged in to leave comments. Login now