~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-07-11 07:25:42 UTC
  • Revision ID: mbp@sourcefrog.net-20050711072542-6b1917e90ffc20cf
- merge john's plugins-have-test_suite.patch:
 - plugins can provide tests
 - plugins command shows more useful information

Show diffs side-by-side

added added

removed removed

Lines of Context:
1424
1424
    hidden = True
1425
1425
    def run(self):
1426
1426
        import bzrlib.plugin
 
1427
        from inspect import getdoc
1427
1428
        from pprint import pprint
1428
 
        pprint(bzrlib.plugin.all_plugins)
 
1429
        for plugin in bzrlib.plugin.all_plugins:
 
1430
            print plugin.__path__[0]
 
1431
            d = getdoc(plugin)
 
1432
            if d:
 
1433
                print '\t', d.split('\n')[0]
 
1434
 
 
1435
        #pprint(bzrlib.plugin.all_plugins)
1429
1436
 
1430
1437
 
1431
1438