##// END OF EJS Templates
shelve: add Shelf.changed_files for resolving changed files in a plugin
Jason R. Coombs -
r50481:636cd968 default
parent child Browse files
Show More
@@ -247,6 +247,14 b' class Shelf:'
247 247 for ext in shelvefileextensions:
248 248 self.vfs.tryunlink(self.name + b'.' + ext)
249 249
250 def changed_files(self, ui, repo):
251 try:
252 ctx = repo.unfiltered()[self.readinfo()[b'node']]
253 return ctx.files()
254 except (FileNotFoundError, error.RepoLookupError):
255 filename = self.vfs.join(self.name + b'.patch')
256 return patch.changedfiles(ui, repo, filename)
257
250 258
251 259 def _optimized_match(repo, node):
252 260 """
General Comments 0
You need to be logged in to leave comments. Login now