/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/option.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import optparse
23
23
import re
24
24
 
25
 
from brzlib.lazy_import import lazy_import
 
25
from breezy.lazy_import import lazy_import
26
26
lazy_import(globals(), """
27
 
from brzlib import (
 
27
from breezy import (
28
28
    errors,
29
29
    revisionspec,
30
30
    i18n,
31
31
    )
32
32
""")
33
33
 
34
 
from brzlib import (
 
34
from breezy import (
35
35
    registry as _mod_registry,
36
36
    )
37
37
 
454
454
 
455
455
 
456
456
def get_optparser(options):
457
 
    """Generate an optparse parser for brzlib-style options"""
 
457
    """Generate an optparse parser for breezy-style options"""
458
458
 
459
459
    parser = OptionParser()
460
460
    parser.remove_option('--help')
543
543
               help='Branch to operate on, instead of working directory.')
544
544
_global_option('file', type=unicode, short_name='F')
545
545
_global_registry_option('log-format', "Use specified log format.",
546
 
                        lazy_registry=('brzlib.log', 'log_formatter_registry'),
 
546
                        lazy_registry=('breezy.log', 'log_formatter_registry'),
547
547
                        value_switches=True, title='Log format',
548
548
                        short_value_switches={'short': 'S'})
549
549
_global_registry_option('merge-type', 'Select a particular merge algorithm.',
550
 
                        lazy_registry=('brzlib.merge', 'merge_type_registry'),
 
550
                        lazy_registry=('breezy.merge', 'merge_type_registry'),
551
551
                        value_switches=True, title='Merge algorithm')
552
552
_global_option('message', type=unicode,
553
553
               short_name='m',