~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/clone.py

  • Committer: Robert Collins
  • Date: 2005-10-03 01:15:02 UTC
  • mfrom: (1092.2.28)
  • Revision ID: robertc@robertcollins.net-20051003011502-f579a509a136b774
mergeĀ fromĀ baz2bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
import os
48
48
import sys
49
49
 
 
50
import bzrlib
50
51
from bzrlib.merge import build_working_dir
51
52
from bzrlib.branch import Branch
52
53
from bzrlib.trace import mutter, note
75
76
    if basis_branch is not None:
76
77
        note("basis_branch is not supported for fast weave copy yet.")
77
78
    history = _get_truncated_history(branch_from, revision)
78
 
    if not os.path.exists(to_location):
 
79
    if not bzrlib.osutils.lexists(to_location):
79
80
        os.mkdir(to_location)
80
81
    branch_to = Branch.initialize(to_location)
81
82
    mutter("copy branch from %s to %s", branch_from, branch_to)
140
141
    """
141
142
    assert isinstance(branch_from, Branch)
142
143
    assert isinstance(to_location, basestring)
143
 
    if not os.path.exists(to_location):
 
144
    if not bzrlib.osutils.lexists(to_location):
144
145
        os.mkdir(to_location)
145
146
    br_to = Branch.initialize(to_location)
146
147
    mutter("copy branch from %s to %s", branch_from, br_to)