# HG changeset patch # User Pierre-Yves David # Date 2020-09-15 08:55:30 # Node ID 053c9014fd39d3db0e6eb79945901548d9a8df81 # Parent 9003e6524f78ff45761f110245c7d1e378a88a78 changing-files: retrieve changelogrevision.files from the sidedata block The `files` field is know to have issue, using a list with fixed, and fixable, computation can only help. For example, using a fixes `files` field would be enough to fix issue6219 once this feature get usable in production. We focus on having thing working for now, we will deal with performance later. Right now we have a ironic situation were we parse sorted value from disk to turn them into a set and then having to sort it again. Differential Revision: https://phab.mercurial-scm.org/D9092 diff --git a/mercurial/changelog.py b/mercurial/changelog.py --- a/mercurial/changelog.py +++ b/mercurial/changelog.py @@ -319,6 +319,8 @@ class changelogrevision(object): @property def files(self): + if self._cpsd: + return sorted(self.changes.touched) off = self._offsets if off[2] == off[3]: return []