Patchwork D6150: tracked: add documentation about `--import-rules` flag

login
register
mail settings
Submitter phabricator
Date March 18, 2019, 11:35 p.m.
Message ID <d7d6e3c831efc11699d3ca3be1983be5@localhost.localdomain>
Download mbox | patch
Permalink /patch/39324/
State Not Applicable
Headers show

Comments

phabricator - March 18, 2019, 11:35 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6cad258e1348: tracked: add documentation about `--import-rules` flag (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6150?vs=14545&id=14549

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

AFFECTED FILES
  hgext/narrow/narrowcommands.py

CHANGE DETAILS




To: pulkit, durin42, martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

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 @@ 
     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: