daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Feb 28th, 2010 219 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [grep]% bzr help grep
  2. Purpose: Print lines matching PATTERN for specified files and revisions.
  3. Usage:   bzr grep PATTERN [PATH...]
  4.  
  5. Options:
  6.   --from-root           Search for pattern starting from the root of the
  7.                         branch. (implies --recursive)
  8.   -Z, --null            Write an ascii NUL (\0) separator between output lines
  9.                         rather than a newline.
  10.   -v, --verbose         Display more information.
  11.   -R, --recursive       Recurse into subdirectories.
  12.   -h, --help            Show help message.
  13.   -q, --quiet           Only display errors and warnings.
  14.   -i, --ignore-case     ignore case distinctions while matching.
  15.   --usage               Show usage message and options.
  16.   -n, --line-number     show 1-based line number.
  17.   -r ARG, --revision=ARG
  18.                         See "help revisionspec" for details.
  19.  
  20. Description:
  21.   This command searches the specified files and revisions for a given pattern.
  22.   The pattern is specified as a Python regular expressions[1].
  23.   If the file name is not specified the file revisions in the current directory
  24.   are searched. If the revision number is not specified, the latest revision is
  25.   searched.
  26.  
  27.   Note that this command is different from POSIX grep in that it searches the
  28.   revisions of the branch and not the working copy. Unversioned files and
  29.   uncommitted changes are not seen.
  30.  
  31.   When searching a pattern, the output is shown in the 'filepath:string' format.
  32.   If a revision is explicitly searched, the output is shown as 'filepath~N:string',
  33.   where N is the revision number.
  34.  
  35.   [1] http://docs.python.org/library/re.html#regular-expression-syntax
  36.  
  37. From:     plugin "grep"
  38. See also: plugins/grep
  39. [grep]%
  40. [grep]% bzr grep print        
  41. __init__.py:print_revno = False
  42. __init__.py:print_revno = True # used to print revno in output.
  43. __init__.py:patternc, from_root, eol_marker, revno, print_revno)
  44. __init__.py:self.outf, line_number, revno, print_revno)
  45. __init__.py:from_root, eol_marker, revno, print_revno):
  46. __init__.py:eol_marker, self.outf, line_number, revno, print_revno)
  47. grep.py:line_number, revno, print_revno):
  48. grep.py:if print_revno:
  49. grep.py:if print_revno:
  50. grep.py:if print_revno:
  51. [grep]%
  52. [grep]%
  53. [grep]% bzr grep -r last:3 print
  54. __init__.py~34:print_revno = False
  55. __init__.py~34:print_revno = True # used to print revno in output.
  56. __init__.py~34:patternc, from_root, eol_marker, revno, print_revno)
  57. __init__.py~34:self.outf, line_number, revno, print_revno)
  58. __init__.py~34:from_root, eol_marker, revno, print_revno):
  59. __init__.py~34:eol_marker, self.outf, line_number, revno, print_revno)
  60. grep.py~34:line_number, revno, print_revno):
  61. grep.py~34:if print_revno:
  62. grep.py~34:if print_revno:
  63. grep.py~34:if print_revno:
  64. [grep]%                        
  65. [grep]%
  66. [grep]% bzr grep -r last:8 print
  67. [grep]%
RAW Paste Data
Top