~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Parth Malwankar
  • Date: 2010-03-11 04:06:29 UTC
  • mto: (0.40.54 grep)
  • mto: This revision was merged to the branch mainline in revision 6555.
  • Revision ID: parth.malwankar@gmail.com-20100311040629-7p8uhreic6bodlaw
--recurseĀ isĀ default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
               help='show 1-based line number.'),
87
87
        Option('ignore-case', short_name='i',
88
88
               help='ignore case distinctions while matching.'),
89
 
        Option('recursive', short_name='R',
90
 
               help='Recurse into subdirectories.'),
 
89
        Option('no-recurse',
 
90
               help="Don't recurse into subdirectories."),
91
91
        Option('from-root',
92
92
               help='Search for pattern starting from the root of the branch. '
93
93
               '(implies --recursive)'),
102
102
 
103
103
 
104
104
    @display_command
105
 
    def run(self, verbose=False, ignore_case=False, recursive=False, from_root=False,
 
105
    def run(self, verbose=False, ignore_case=False, no_recurse=False, from_root=False,
106
106
            null=False, levels=None, line_number=False, path_list=None, revision=None, pattern=None):
107
107
 
 
108
        recursive = not no_recurse
 
109
 
108
110
        if levels==None:
109
111
            levels=1
110
112