Skip to content
Snippets Groups Projects
Commit 636cd968 authored by Jason R. Coombs's avatar Jason R. Coombs
Browse files

shelve: add Shelf.changed_files for resolving changed files in a plugin

parent 18282cf1
No related branches found
No related tags found
2 merge requests!485branching: merge default into stable,!222shelve: Add Shelf.changed_files for resolving changed files in a plugin.
......@@ -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):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment