~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/clone.py

  • Committer: Martin Pool
  • Date: 2005-10-04 02:27:27 UTC
  • mfrom: (1399)
  • mto: (1185.13.3)
  • mto: This revision was merged to the branch mainline in revision 1400.
  • Revision ID: mbp@sourcefrog.net-20051004022727-aee7064c62e039a7
[merge] merge robertc's format5 integration

 - test status on specific files
 - track x bit
 - baz2bzr fixes
 - remotebranch fixes

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)