~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-12-03 05:08:05 UTC
  • mfrom: (4854.1.1 merge-2.0-into-devel)
  • Revision ID: pqm@pqm.ubuntu.com-20091203050805-s70sybyrsrbbs10c
(andrew) Merge lp:bzr/2.0 into lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1285
1285
        # clone call. Or something. 20090224 RBC/spiv.
1286
1286
        if revision_id is None:
1287
1287
            revision_id = self.last_revision()
1288
 
        try:
1289
 
            dir_to = self.bzrdir.clone_on_transport(to_transport,
1290
 
                revision_id=revision_id, stacked_on=stacked_on,
1291
 
                create_prefix=create_prefix, use_existing_dir=use_existing_dir)
1292
 
        except errors.FileExists:
1293
 
            if not use_existing_dir:
1294
 
                raise
1295
 
        except errors.NoSuchFile:
1296
 
            if not create_prefix:
1297
 
                raise
 
1288
        dir_to = self.bzrdir.clone_on_transport(to_transport,
 
1289
            revision_id=revision_id, stacked_on=stacked_on,
 
1290
            create_prefix=create_prefix, use_existing_dir=use_existing_dir)
1298
1291
        return dir_to.open_branch()
1299
1292
 
1300
1293
    def create_checkout(self, to_location, revision_id=None,