# HG changeset patch # User Pulkit Goyal # Date 2019-03-18 11:57:43 # Node ID 6cad258e13481b311f830e56d1dd514bdd51282c # Parent 0d467e4de4aefe8b482fbbc0e93d9fe8231db2bb 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 diff --git a/hgext/narrow/narrowcommands.py b/hgext/narrow/narrowcommands.py --- a/hgext/narrow/narrowcommands.py +++ b/hgext/narrow/narrowcommands.py @@ -345,6 +345,10 @@ def trackedcmd(ui, repo, remotepath=None 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: