Rev 18: More useful output on found missing commands (usefully suggested by poolie). in http://people.canonical.com/~robertc/baz2.0/plugins/plugin_info/trunk
Robert Collins
robertc at robertcollins.net
Mon Mar 1 07:36:09 GMT 2010
At http://people.canonical.com/~robertc/baz2.0/plugins/plugin_info/trunk
------------------------------------------------------------
revno: 18
revision-id: robertc at robertcollins.net-20100301073608-k8zj3y81nnqoy340
parent: robertc at robertcollins.net-20100301072438-pb66uzqg24zgr3ak
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Mon 2010-03-01 18:36:08 +1100
message:
More useful output on found missing commands (usefully suggested by poolie).
=== modified file 'hooks.py'
--- a/hooks.py 2010-03-01 07:24:38 +0000
+++ b/hooks.py 2010-03-01 07:36:08 +0000
@@ -48,8 +48,10 @@
def run_argv_aliases(self, argv, alias_argv=None):
self._setup_outf()
- plugin_names = [info.name for info in self._plugins]
- self.outf.write("Command %s is supplied by the following plugins:\n "
+ self.outf.write("Command '%s' is not available at the moment.\n"
% self._name)
- self.outf.write(", ".join(plugin_names))
+ self.outf.write("The following plugins include this command:\n")
+ for info in self._plugins:
+ self.outf.write(" * %s (branch available %s)\n" % (
+ info.name, info.location))
self.outf.write("\n")
More information about the bazaar-commits
mailing list