~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/push.py

  • Committer: IWATA Hidetaka
  • Date: 2010-12-26 13:19:11 UTC
  • mto: This revision was merged to the branch mainline in revision 5593.
  • Revision ID: iwata0303@gmail.com-20101226131911-o7txs0fnji5zekq1
add icon resources tbzrcommand(w)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""UI helper for the push command."""
18
18
 
19
19
from bzrlib import (
20
 
    builtins,
21
 
    branch,
22
20
    bzrdir,
23
21
    errors,
24
22
    revision as _mod_revision,
59
57
 
60
58
def _show_push_branch(br_from, revision_id, location, to_file, verbose=False,
61
59
    overwrite=False, remember=False, stacked_on=None, create_prefix=False,
62
 
    use_existing_dir=False):
 
60
    use_existing_dir=False, no_tree=False):
63
61
    """Push a branch to a location.
64
62
 
65
63
    :param br_from: the source branch
89
87
        try:
90
88
            br_to = br_from.create_clone_on_transport(to_transport,
91
89
                revision_id=revision_id, stacked_on=stacked_on,
92
 
                create_prefix=create_prefix, use_existing_dir=use_existing_dir)
 
90
                create_prefix=create_prefix, use_existing_dir=use_existing_dir,
 
91
                no_tree=no_tree)
93
92
        except errors.FileExists, err:
94
93
            if err.path.endswith('/.bzr'):
95
94
                raise errors.BzrCommandError(