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

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Tue Jun 2 10:48:32 UTC 2020


marmoute updated this revision to Diff 21547.

REPOSITORY
  rHG Mercurial

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

BRANCH
  default

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
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200602/25de16ee/attachment.html>


More information about the Mercurial-patches mailing list