/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 contrib/convert_to_1.9.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 12:41:27 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521124127-iv8etg0vwymyai6y
s/bzr/brz/ in apport config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
    opts, args = p.parse_args(args)
27
27
 
28
 
    from bzrlib import ui, trace, repository
29
 
    from bzrlib.ui import text
30
 
    from bzrlib.repofmt import pack_repo
 
28
    from brzlib import ui, trace, repository
 
29
    from brzlib.ui import text
 
30
    from brzlib.repofmt import pack_repo
31
31
    ui.ui_factory = text.TextUIFactory()
32
32
    trace.enable_default_logging()
33
33
 
35
35
 
36
36
    fmt = getattr(pack_repo, 'RepositoryFormatKnitPack6', None)
37
37
    if fmt is None:
38
 
        trace.note("** Your bzrlib does not have RepositoryFormatPack6 (--1.9)")
39
 
        trace.note("   upgrade your bzrlib installation.")
 
38
        trace.note("** Your brzlib does not have RepositoryFormatPack6 (--1.9)")
 
39
        trace.note("   upgrade your brzlib installation.")
40
40
        return
41
41
 
42
42
    r = repository.Repository.open('.')
75
75
 
76
76
 
77
77
def do_upgrade(r, fmt, pb):
78
 
    from bzrlib import errors, repository, transport, ui, index, btree_index
79
 
    from bzrlib.repofmt import pack_repo
 
78
    from brzlib import errors, repository, transport, ui, index, btree_index
 
79
    from brzlib.repofmt import pack_repo
80
80
    t = r._transport
81
81
    index_t = t.clone('indices')
82
82
    btree_index_t = t.clone('indices-btree')