diff tests/test-narrow-trackedcmd.t @ 42945:40f78072fda9

narrow: add option for automatically removing unused includes It's been a somewhat common request among our users to have Mercurial automatically pick includes to remove. This patch adds an option for that: `hg tracked --auto-remove-includes`. I'm not sure if this is the right name and semantics for it. Perhaps the feature should also add excludes of large subdirectories even if other files in the include are needed? Narrow clones are experimental, so we can change the name and/or semantics later if necessary. Differential Revision: https://phab.mercurial-scm.org/D6848
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 Sep 2019 21:55:45 -0700
parents 383fdfa6bba9
children 5c2a4f37eace
line wrap: on
line diff
--- a/tests/test-narrow-trackedcmd.t	Thu Sep 12 21:22:59 2019 -0700
+++ b/tests/test-narrow-trackedcmd.t	Thu Sep 12 21:55:45 2019 -0700
@@ -101,6 +101,8 @@
   
       --addinclude VALUE [+]       new paths to include
       --removeinclude VALUE [+]    old paths to no longer include
+      --auto-remove-includes       automatically choose unused includes to
+                                   remove
       --addexclude VALUE [+]       new paths to exclude
       --import-rules VALUE         import narrowspecs from a file
       --removeexclude VALUE [+]    old paths to no longer exclude