mercurial/scmutil.py
changeset 42731 53c07f08fea1
parent 42730 87c4cd89b539
child 42900 38392d5bde8e
--- a/mercurial/scmutil.py	Wed Jun 12 13:42:22 2019 +0100
+++ b/mercurial/scmutil.py	Wed Jun 12 13:42:52 2019 +0100
@@ -1993,3 +1993,12 @@
         if not any(f in p for p in ctx.parents()):
             added.append(f)
     return added
+
+def computechangesetfilesremoved(ctx):
+    """return the list of files removed in a changeset
+    """
+    removed = []
+    for f in ctx.files():
+        if f not in ctx:
+            removed.append(f)
+    return removed