Mercurial > hg
comparison hgext/narrow/narrowcommands.py @ 36166:ccf7ae119769
narrowcommands: more byteskwargs cleanup
Differential Revision: https://phab.mercurial-scm.org/D2239
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 13 Feb 2018 13:38:38 -0500 |
parents | 9fd8c2a3db5a |
children | 5dbeddbf164a |
comparison
equal
deleted
inserted
replaced
36165:53fe5a1a92bd | 36166:ccf7ae119769 |
---|---|
330 If --clear is specified, then all previous includes and excludes are DROPPED | 330 If --clear is specified, then all previous includes and excludes are DROPPED |
331 and replaced by the new ones specified to --addinclude and --addexclude. | 331 and replaced by the new ones specified to --addinclude and --addexclude. |
332 If --clear is specified without any further options, the narrowspec will be | 332 If --clear is specified without any further options, the narrowspec will be |
333 empty and will not match any files. | 333 empty and will not match any files. |
334 """ | 334 """ |
335 opts = pycompat.byteskwargs(opts) | |
335 if narrowrepo.REQUIREMENT not in repo.requirements: | 336 if narrowrepo.REQUIREMENT not in repo.requirements: |
336 ui.warn(_('The narrow command is only supported on respositories cloned' | 337 ui.warn(_('The narrow command is only supported on respositories cloned' |
337 ' with --narrow.\n')) | 338 ' with --narrow.\n')) |
338 return 1 | 339 return 1 |
339 | 340 |