~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/controldir.py

  • Committer: Vincent Ladeuil
  • Date: 2011-01-27 15:58:36 UTC
  • mfrom: (5609.2.5 2.3)
  • mto: This revision was merged to the branch mainline in revision 5635.
  • Revision ID: v.ladeuil+lp@free.fr-20110127155836-hoyxs53z42jh3ezm
Merge 2.3 into trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    errors,
32
32
    graph,
33
33
    revision as _mod_revision,
 
34
    transport as _mod_transport,
34
35
    urlutils,
35
36
    )
36
37
from bzrlib.push import (
40
41
    mutter,
41
42
    )
42
43
from bzrlib.transport import (
43
 
    get_transport,
44
44
    local,
45
45
    )
46
46
 
378
378
               accelerator_tree=None, hardlink=False, stacked=False,
379
379
               source_branch=None, create_tree_if_local=True):
380
380
        add_cleanup = op.add_cleanup
381
 
        target_transport = get_transport(url, possible_transports)
 
381
        target_transport = _mod_transport.get_transport(url,
 
382
            possible_transports)
382
383
        target_transport.ensure_base()
383
384
        cloning_format = self.cloning_metadir(stacked)
384
385
        # Create/update the result branch
585
586
        :param preserve_stacking: When cloning a stacked branch, stack the
586
587
            new branch on top of the other branch's stacked-on branch.
587
588
        """
588
 
        return self.clone_on_transport(get_transport(url),
 
589
        return self.clone_on_transport(_mod_transport.get_transport(url),
589
590
                                       revision_id=revision_id,
590
591
                                       force_new_repo=force_new_repo,
591
592
                                       preserve_stacking=preserve_stacking)
762
763
        Subclasses should typically override initialize_on_transport
763
764
        instead of this method.
764
765
        """
765
 
        return self.initialize_on_transport(get_transport(url,
766
 
                                                          possible_transports))
 
766
        return self.initialize_on_transport(
 
767
            _mod_transport.get_transport(url, possible_transports))
 
768
 
767
769
    def initialize_on_transport(self, transport):
768
770
        """Initialize a new controldir in the base directory of a Transport."""
769
771
        raise NotImplementedError(self.initialize_on_transport)