23
23
from ...option import Option, ListOption
24
24
from ...config import GlobalConfig
26
from ...sixish import (
26
30
# FIXME: _parse_levels should be shared with breezy.builtins. this is a copy
27
31
# to avoid the error
28
32
# "IllegalUseOfScopeReplacer: ScopeReplacer object '_parse_levels' was used
105
109
takes_options = [
108
Option('color', type=str, argname='when',
112
Option('color', type=text_type, argname='when',
109
113
help='Show match in color. WHEN is never, always or auto.'),
110
114
Option('diff', short_name='p',
111
115
help='Grep for pattern in changeset for each revision.'),
112
ListOption('exclude', type=str, argname='glob', short_name='X',
116
ListOption('exclude', type=text_type, argname='glob', short_name='X',
113
117
help="Skip files whose base name matches GLOB."),
114
ListOption('include', type=str, argname='glob', short_name='I',
118
ListOption('include', type=text_type, argname='glob', short_name='I',
115
119
help="Search only files whose base name matches GLOB."),
116
120
Option('files-with-matches', short_name='l',
117
121
help='Print only the name of each input file in '