changing-files: retrieve changelogrevision.files from the sidedata block
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 15 Sep 2020 10:55:30 +0200
changeset 45636 053c9014fd39
parent 45635 9003e6524f78
child 45637 ad6ebb6f0dfe
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
mercurial/changelog.py
--- a/mercurial/changelog.py	Tue Sep 15 10:49:50 2020 +0200
+++ b/mercurial/changelog.py	Tue Sep 15 10:55:30 2020 +0200
@@ -319,6 +319,8 @@
 
     @property
     def files(self):
+        if self._cpsd:
+            return sorted(self.changes.touched)
         off = self._offsets
         if off[2] == off[3]:
             return []