1. idank
  2. mercurial


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
  • Branches default

Comments (0)

Files changed (1)

File mercurial/context.py

View file
         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)
     def _dirs(self):
         dirs = set()