narrow

Description

Commands

tracked

show or change the current narrowspec:

hg tracked [OPTIONS]... [REMOTE]

With no argument, shows the current narrowspec entries, one per line. Each line will be prefixed with 'I' or 'X' for included or excluded patterns, respectively.

The narrowspec is comprised of expressions to match remote files and/or directories that should be pulled into your client. The narrowspec has include and exclude expressions, with excludes always trumping includes: that is, if a file matches an exclude expression, it will be excluded even if it also matches an include expression. Excluding files that were never included has no effect.

Each included or excluded entry is in the format described by 'hg help patterns'.

The options allow you to add or remove included and excluded expressions.

If --clear is specified, then all previous includes and excludes are DROPPED 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.

Options:

--addinclude <VALUE[+]>
 new paths to include
--removeinclude <VALUE[+]>
 old paths to no longer include
--addexclude <VALUE[+]>
 new paths to exclude
--import-rules <VALUE>
 import narrowspecs from a file
--removeexclude <VALUE[+]>
 old paths to no longer exclude
--clear whether to replace the existing narrowspec
--force-delete-local-changes
 forces deletion of local changes when narrowing
--update-working-copy
 update working copy when the store has changed
-e, --ssh <CMD>
 specify ssh command to use
--remotecmd <CMD>
 specify hg command to run on the remote side
--insecure do not verify server certificate (ignoring web.cacerts config)

[+] marked option can be specified multiple times