Rev 6: Fix failing test. in http://code.launchpad.net/%7Ev-ladeuil/bzr/grep

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Jan 9 10:45:13 GMT 2008


At http://code.launchpad.net/%7Ev-ladeuil/bzr/grep

------------------------------------------------------------
revno: 6
revision-id:v.ladeuil+lp at free.fr-20080109104510-vc1x3lbm24bq7caa
parent: v.ladeuil+lp at free.fr-20071214145856-6sjcgl3cpa9x88q7
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: grep
timestamp: Wed 2008-01-09 11:45:10 +0100
message:
  Fix failing test.
  
  * __init__.py:
  (cmd_grep): Add help.
modified:
  __init__.py                    __init__.py-20060323100923-17d68e8a2f14f018
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py	2007-12-14 14:58:56 +0000
+++ b/__init__.py	2008-01-09 10:45:10 +0000
@@ -6,6 +6,7 @@
 from bzrlib import (
     builtins,
     commands,
+    options,
     osutils,
     )
 
@@ -22,7 +23,11 @@
     """
 
     takes_args = ['pattern', 'file*']
-    takes_options = ['no-recurse']
+    takes_options = [
+        options.Option(
+            'no-recurse',
+            help="Don't recursively grep the contents of directories."),
+        ]
 
     @commands.display_command
     def run(self, pattern, no_recurse=False, file_list=None):
@@ -76,4 +81,5 @@
 
         return options, files
 
+
 commands.register_command(cmd_grep)



More information about the bazaar-commits mailing list