--- a/mercurial/shelve.py Mon Nov 14 10:59:09 2022 +0100
+++ b/mercurial/shelve.py Mon Aug 29 14:11:26 2022 -0400
@@ -247,6 +247,14 @@
for ext in shelvefileextensions:
self.vfs.tryunlink(self.name + b'.' + ext)
+ def changed_files(self, ui, repo):
+ try:
+ ctx = repo.unfiltered()[self.readinfo()[b'node']]
+ return ctx.files()
+ except (FileNotFoundError, error.RepoLookupError):
+ filename = self.vfs.join(self.name + b'.patch')
+ return patch.changedfiles(ui, repo, filename)
+
def _optimized_match(repo, node):
"""