[Updated] D8589: metadata: filter the `removed` set to only contains relevant data

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Tue Jun 9 11:33:23 UTC 2020


Closed by commit rHG25512a65cefd: metadata: filter the `removed` set to only contains relevant data (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8589?vs=21547&id=21585

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8589/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8589

AFFECTED FILES
  mercurial/metadata.py

CHANGE DETAILS

diff --git a/mercurial/metadata.py b/mercurial/metadata.py
--- a/mercurial/metadata.py
+++ b/mercurial/metadata.py
@@ -94,6 +94,9 @@
     for f in ctx.files():
         if f not in ctx:
             removed.append(f)
+    if removed:
+        rf = get_removal_filter(ctx)
+        removed = [r for r in removed if not rf(r)]
     return removed
 
 



To: marmoute, #hg-reviewers, durin42, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200609/32e458bc/attachment.html>


More information about the Mercurial-patches mailing list