~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-10-12 10:43:30 UTC
  • mfrom: (5487.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20101012104330-tsonnndvloj18v4q
(vila) Add a --no-tree option for init and push (Matthew Gordon)

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
 
168
168
    def clone_on_transport(self, transport, revision_id=None,
169
169
        force_new_repo=False, preserve_stacking=False, stacked_on=None,
170
 
        create_prefix=False, use_existing_dir=True):
 
170
        create_prefix=False, use_existing_dir=True, no_tree=False):
171
171
        """Clone this bzrdir and its contents to transport verbatim.
172
172
 
173
173
        :param transport: The transport for the location to produce the clone
215
215
        # we should look up the policy needs first, or just use it as a hint,
216
216
        # or something.
217
217
        if local_repo:
218
 
            make_working_trees = local_repo.make_working_trees()
 
218
            make_working_trees = local_repo.make_working_trees() and not no_tree
219
219
            want_shared = local_repo.is_shared()
220
220
            repo_format_name = format.repository_format.network_name()
221
221
        else: