-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/plugins/grep/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/plugins/grep/cmds.pyc

ó
‚F6Pc@@s›dZddlmZddlmZddlmZmZddlm	Z	m
Z
ddlmZd„Z
defd	„ƒYZd
efd„ƒYZdS(
s?Print lines matching PATTERN for specified files and revisions.i(tabsolute_import(terrors(tCommandtdisplay_command(tOptiont
ListOption(tGlobalConfigcC@s;yt|ƒSWn&tk
r6d}tj|ƒ‚nXdS(Ns'The levels argument must be an integer.(tintt
ValueErrorRtBzrCommandError(tstmsg((s</usr/lib/python2.7/dist-packages/bzrlib/plugins/grep/cmds.pyt
_parse_levels s

tGrepOptionscB@s¤eZdZeZeZeZeZeZdZ
eZdZdZ
dZdZdZeZeZeZdZeZdZdZdZdZdZdZdZeZRS(sêContainer to pass around grep options.

    This class is used as a container to pass around user option and
    some other params (like outf) to processing functions. This makes
    it easier to add more options as grep evolves.
    N(t__name__t
__module__t__doc__tFalsetverbosetignore_casetno_recursivet	from_roottnulltNonetlevelstline_numbert	path_listtrevisiontpatterntincludetexcludetfixed_stringtfiles_with_matchestfiles_without_matchtcolortdifft	recursivet
eol_markertpatternctsub_patternctprint_revnotoutft
show_color(((s</usr/lib/python2.7/dist-packages/bzrlib/plugins/grep/cmds.pyR
(s4tcmd_grepcB@s—eZdZdZddgZddeddedd	d
dƒedd
dd
dƒeddeddd
dd
dƒeddeddd
dd
dƒedd
dd
dƒedd
dd
dƒedd
dd
dƒed d
d!ƒed"d
d#d
d$ƒed%d
d&dd'deƒed(d
d)d
d*ƒed+d
d,ƒed-d
d.d
d/ƒgZ	e
eeeeed1ed1d1d1d1d1eeed1ed0„ƒZ
RS(2sáPrint lines matching PATTERN for specified files and revisions.

    This command searches the specified files and revisions for a given
    pattern.  The pattern is specified as a Python regular expressions[1].

    If the file name is not specified, the revisions starting with the
    current directory are searched recursively. If the revision number is
    not specified, the working copy is searched. To search the last committed
    revision, use the '-r -1' or '-r last:1' option.

    Unversioned files are not searched unless explicitly specified on the
    command line. Unversioned directores are not searched.

    When searching a pattern, the output is shown in the 'filepath:string'
    format. If a revision is explicitly searched, the output is shown as
    'filepath~N:string', where N is the revision number.

    --include and --exclude options can be used to search only (or exclude
    from search) files with base name matches the specified Unix style GLOB
    pattern.  The GLOB pattern an use *, ?, and [...] as wildcards, and \
    to quote wildcard or backslash character literally. Note that the glob
    pattern is not a regular expression.

    [1] http://docs.python.org/library/re.html#regular-expression-syntax
    treplaceRspath*RRR"ttypetargnametwhenthelps3Show match in color. WHEN is never, always or auto.R#t
short_nametps0Grep for pattern in changeset for each revision.RtglobtXs(Skip files whose base name matches GLOB.RtIs/Search only files whose base name matches GLOB.sfiles-with-matchestlsAPrint only the name of each input file in which PATTERN is found.sfiles-without-matchtLsEPrint only the name of each input file in which PATTERN is not found.sfixed-stringtFs7Interpret PATTERN is a single fixed string (not regex).s	from-rootsNSearch for pattern starting from the root of the branch. (implies --recursive)signore-casetis(ignore case distinctions while matching.RsHNumber of levels to display - 0 for all, 1 for collapsed (1 is default).tNsline-numbertnsshow 1-based line number.sno-recursives;Don't recurse into subdirectories. (default is --recursive)RtZsMWrite an ASCII NUL (\0) separator between output lines rather than a newline.cC@sddlm}ddlm}ddl}|dkrDdg}n|r\tjdƒ‚n|rz|rztjdƒ‚ntƒ}|dkr¡|j	dƒ}n|dkr¶d}n|dkrÔtjdƒ‚n|dkréd}nt
}|	dks|dkrt}nd
}|r%d}n|rD|j|
ƒrDt}
n$|rh|
rht
}
|j
|
ƒ}
nd}|j}|r||jO}n|
s¨|j|
|ƒ}n|d	kr½t}n0|dkrÒt
}n|d
krí|jƒ}n|t_|t_|t_|t_|t_|t_|t_|t_|	t_|
t_|t_|t_|
t_|t_ |t_!|t_"t
t_#|t_$|t_%|t_&|t_'|
t_|j(t_(|t_)|rß|j*tƒn)|	dkrû|j+tƒn
|j,tƒdS(Ni(t
_termcolor(tgrept.s)cannot specify both --from-root and PATH.sKcannot specify both -l/--files-with-matches and -L/--files-without-matches.t
grep_colortnevertalwaystautos9Valid values for --color are "always", "never" or "auto".is
t(salwaysRARC(-tbzrlibR=tbzrlib.plugins.grepR>treRRR	Rtget_user_optionRtTruetis_fixed_stringtescapet	MULTILINEt
IGNORECASEtcompile_patterntallow_colorR
RRRRRRRRRRRRRR R!R"R#R%R(R&R$R)R*t	grep_difftworkingtree_greptversioned_grep(tselfRRRRRRRRRRRRRR R!R"R#R=R>RGt
global_configR(R%R&tre_flagsR*((s</usr/lib/python2.7/dist-packages/bzrlib/plugins/grep/cmds.pytrunsŒ																													
		N(RRRt
encoding_typet
takes_argsRtstrRRt
takes_optionsRRRRV(((s</usr/lib/python2.7/dist-packages/bzrlib/plugins/grep/cmds.pyR+LsN					N(Rt
__future__RRERtbzrlib.commandsRRt
bzrlib.optionRRt
bzrlib.configRRtobjectR
R+(((s</usr/lib/python2.7/dist-packages/bzrlib/plugins/grep/cmds.pyt<module>s	$

Copyright © 2017 || Recoded By Mr.Bumblebee