changeset 41980:6cad258e1348

tracked: add documentation about `--import-rules` flag The documentation is inspired from the `--import-rules` flag of hg debugsparse command. Differential Revision: https://phab.mercurial-scm.org/D6150
author Pulkit Goyal <pulkit@yandex-team.ru>
date Mon, 18 Mar 2019 14:57:43 +0300
parents 0d467e4de4ae
children a920a9e1795a
files hgext/narrow/narrowcommands.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/narrowcommands.py	Thu Mar 14 19:13:45 2019 +0000
+++ b/hgext/narrow/narrowcommands.py	Mon Mar 18 14:57:43 2019 +0300
@@ -345,6 +345,10 @@
     and replaced by the new ones specified to --addinclude and --addexclude.
     If --clear is specified without any further options, the narrowspec will be
     empty and will not match any files.
+
+    --import-rules accepts a path to a file containing rules, allowing you to
+    add --addinclude, --addexclude rules in bulk. Like the other include and
+    exclude switches, the changes are applied immediately.
     """
     opts = pycompat.byteskwargs(opts)
     if repository.NARROW_REQUIREMENT not in repo.requirements: