[Pkg-bazaar-commits] ./bzr/unstable r755: - new 'plugins' command
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:20:56 UTC 2009
------------------------------------------------------------
revno: 755
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-06-22 18:58:45 +1000
message:
- new 'plugins' command
- fix inverted sense of --no-plugins option
modified:
bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py 2005-06-22 07:18:01 +0000
+++ b/bzrlib/commands.py 2005-06-22 08:58:45 +0000
@@ -1270,6 +1270,15 @@
+class cmd_plugins(Command):
+ """List plugins"""
+ hidden = True
+ def run(self):
+ import bzrlib.plugin
+ print dir(bzrlib.plugin)
+
+
+
# list of all available options; the rhs can be either None for an
# option that takes no argument, or a constructor function that checks
# the type.
@@ -1530,7 +1539,7 @@
try:
# some options like --builtin and --no-plugins have special effects
argv, master_opts = _parse_master_args(argv)
- if 'no-plugins' not in master_opts:
+ if not master_opts['no-plugins']:
bzrlib.load_plugins()
args, opts = parse_args(argv)
More information about the Pkg-bazaar-commits
mailing list