~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/clone.py

  • Committer: Aaron Bentley
  • Date: 2005-10-04 04:32:32 UTC
  • mfrom: (1185.12.6)
  • mto: (1185.12.13)
  • mto: This revision was merged to the branch mainline in revision 1419.
  • Revision ID: aaron.bentley@utoronto.ca-20051004043231-40302a149769263b
merged my own changes

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)