Commits

idank  committed a483df2

context: introduce changes function to get a list of files changed

Will be used to display the list of changed files in the editor
when amending.

  • Participants
  • Parent commits 7b9bf72

Comments (0)

Files changed (1)

File mercurial/context.py

         return patch.diff(self._repo, ctx2.node(), self.node(),
                           match=match, opts=diffopts)
 
+    def changes(self, ctx2):
+        """Returns a list of lists of modified/added/removed files that were
+        changed between ctx2 and self"""
+        return self._repo.status(ctx2.node(), self._node)
+
     @propertycache
     def _dirs(self):
         dirs = set()