- [grep]% bzr help grep
- Purpose: Print lines matching PATTERN for specified files and revisions.
- Usage: bzr grep PATTERN [PATH...]
- Options:
- --from-root Search for pattern starting from the root of the
- branch. (implies --recursive)
- -Z, --null Write an ascii NUL (\0) separator between output lines
- rather than a newline.
- -v, --verbose Display more information.
- -R, --recursive Recurse into subdirectories.
- -h, --help Show help message.
- -q, --quiet Only display errors and warnings.
- -i, --ignore-case ignore case distinctions while matching.
- --usage Show usage message and options.
- -n, --line-number show 1-based line number.
- -r ARG, --revision=ARG
- See "help revisionspec" for details.
- Description:
- 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 file revisions in the current directory
- are searched. If the revision number is not specified, the latest revision is
- searched.
- Note that this command is different from POSIX grep in that it searches the
- revisions of the branch and not the working copy. Unversioned files and
- uncommitted changes are not seen.
- 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.
- [1] http://docs.python.org/library/re.html#regular-expression-syntax
- From: plugin "grep"
- See also: plugins/grep
- [grep]%
- [grep]% bzr grep print
- __init__.py:print_revno = False
- __init__.py:print_revno = True # used to print revno in output.
- __init__.py:patternc, from_root, eol_marker, revno, print_revno)
- __init__.py:self.outf, line_number, revno, print_revno)
- __init__.py:from_root, eol_marker, revno, print_revno):
- __init__.py:eol_marker, self.outf, line_number, revno, print_revno)
- grep.py:line_number, revno, print_revno):
- grep.py:if print_revno:
- grep.py:if print_revno:
- grep.py:if print_revno:
- [grep]%
- [grep]%
- [grep]% bzr grep -r last:3 print
- __init__.py~34:print_revno = False
- __init__.py~34:print_revno = True # used to print revno in output.
- __init__.py~34:patternc, from_root, eol_marker, revno, print_revno)
- __init__.py~34:self.outf, line_number, revno, print_revno)
- __init__.py~34:from_root, eol_marker, revno, print_revno):
- __init__.py~34:eol_marker, self.outf, line_number, revno, print_revno)
- grep.py~34:line_number, revno, print_revno):
- grep.py~34:if print_revno:
- grep.py~34:if print_revno:
- grep.py~34:if print_revno:
- [grep]%
- [grep]%
- [grep]% bzr grep -r last:8 print
- [grep]%
SHARE
TWEET
Untitled
a guest
Feb 28th, 2010
219
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
