/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/push.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from __future__ import absolute_import
20
20
 
21
 
from bzrlib import (
 
21
from breezy import (
22
22
    controldir,
23
23
    errors,
24
24
    revision as _mod_revision,
25
25
    transport,
26
26
    )
27
 
from bzrlib.trace import (
 
27
from breezy.trace import (
28
28
    note,
29
29
    warning,
30
30
    )
31
 
from bzrlib.i18n import gettext
 
31
from breezy.i18n import gettext
32
32
 
33
33
 
34
34
class PushResult(object):
146
146
                remember, create_prefix)
147
147
        except errors.DivergedBranches:
148
148
            raise errors.BzrCommandError(gettext('These branches have diverged.'
149
 
                                    '  See "bzr help diverged-branches"'
 
149
                                    '  See "brz help diverged-branches"'
150
150
                                    ' for more information.'))
151
151
        except errors.NoRoundtrippingSupport, e:
152
152
            raise errors.BzrCommandError(gettext("It is not possible to losslessly "
161
161
                " directory out of the way and try again.") % location)
162
162
        if push_result.workingtree_updated == False:
163
163
            warning("This transport does not update the working " 
164
 
                    "tree of: %s. See 'bzr help working-trees' for "
 
164
                    "tree of: %s. See 'brz help working-trees' for "
165
165
                    "more information." % push_result.target_branch.base)
166
166
    push_result.report(to_file)
167
167
    if verbose:
168
168
        br_to = push_result.target_branch
169
169
        br_to.lock_read()
170
170
        try:
171
 
            from bzrlib.log import show_branch_change
 
171
            from breezy.log import show_branch_change
172
172
            show_branch_change(br_to, to_file, push_result.old_revno, 
173
173
                               push_result.old_revid)
174
174
        finally: