PATCH: shell-complete tweak

Clint Adams schizo at debian.org
Fri Sep 9 15:17:46 BST 2005


I haven't been following along, but shell-complete <arg> is broken in
0.0.7.  This appears to get it back to its previous condition.

*** modified file 'bzrlib/shellcomplete.py'
--- bzrlib/shellcomplete.py 
+++ bzrlib/shellcomplete.py 
@@ -17,14 +17,14 @@
 
     from inspect import getdoc
     import commands
-    context, cmdclass = commands.get_cmd_class(cmdname)
+    cmdobj = commands.get_cmd_object(cmdname)
 
-    doc = getdoc(cmdclass)
+    doc = getdoc(cmdobj)
     if doc == None:
         raise NotImplementedError("sorry, no detailed shellcomplete yet for %r" % cmdname)
 
-    shellcomplete_on_option(cmdclass.takes_options, outfile = None)
-    for aname in cmdclass.takes_args:
+    shellcomplete_on_option(cmdobj.takes_options, outfile = None)
+    for aname in cmdobj.takes_args:
 	    outfile.write(aname + '\n')
 
 





More information about the bazaar mailing list