Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHGccf7ae119769: narrowcommands: more byteskwargs cleanup
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
The options allow you to add or remove included and excluded expressions. | The options allow you to add or remove included and excluded expressions. | ||||
If --clear is specified, then all previous includes and excludes are DROPPED | If --clear is specified, then all previous includes and excludes are DROPPED | ||||
and replaced by the new ones specified to --addinclude and --addexclude. | and replaced by the new ones specified to --addinclude and --addexclude. | ||||
If --clear is specified without any further options, the narrowspec will be | If --clear is specified without any further options, the narrowspec will be | ||||
empty and will not match any files. | empty and will not match any files. | ||||
""" | """ | ||||
opts = pycompat.byteskwargs(opts) | |||||
if narrowrepo.REQUIREMENT not in repo.requirements: | if narrowrepo.REQUIREMENT not in repo.requirements: | ||||
ui.warn(_('The narrow command is only supported on respositories cloned' | ui.warn(_('The narrow command is only supported on respositories cloned' | ||||
' with --narrow.\n')) | ' with --narrow.\n')) | ||||
return 1 | return 1 | ||||
# Before supporting, decide whether it "hg tracked --clear" should mean | # Before supporting, decide whether it "hg tracked --clear" should mean | ||||
# tracking no paths or all paths. | # tracking no paths or all paths. | ||||
if opts['clear']: | if opts['clear']: |