~stefanor/ibid/pandoc-man-511899

« back to all changes in this revision

Viewing changes to ibid/plugins/bzr.py

2nd phase of plugin regorganisation:
* New 2-level feature categorisation system:
  Processor -> 1+ features
  feature -> 1+ categories
* Revamped help.
  Word stemming in category and feature search
  Usage is now a Processor attribute rather than docstring.
https://code.launchpad.net/~ibid-core/ibid/feature-discovery-399667/+merge/19785

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
from ibid.config import DictOption, IntOption
15
15
from ibid.utils import ago, format_date, human_join
16
16
 
17
 
help = {'bzr': u'Retrieves commit logs from a Bazaar repository.'}
 
17
features = {'bzr': {
 
18
    'description': u'Retrieves commit logs from a Bazaar repository.',
 
19
    'categories': ('development',),
 
20
}}
18
21
 
19
22
class LogFormatter(log.LogFormatter):
20
23
 
57
60
        self.to_file.write(commit)
58
61
 
59
62
class Bazaar(Processor, RPC):
60
 
    u"""(last commit|commit <revno>) [to <repo>] [full]
 
63
    usage = u"""(last commit|commit <revno>) [to <repo>] [full]
61
64
    repositories"""
62
 
    feature = 'bzr'
 
65
    feature = ('bzr',)
63
66
    autoload = False
64
67
 
65
68
    repositories = DictOption('repositories', 'Dict of repositories names and URLs')