~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/controldir.py

  • Committer: Andrew Bennetts
  • Date: 2011-03-23 05:15:48 UTC
  • mfrom: (5609.24.5 2.3)
  • mto: This revision was merged to the branch mainline in revision 5732.
  • Revision ID: andrew.bennetts@canonical.com-20110323051548-rit3h3i274gszs2n
Merge lp:bzr/2.3, including fixes for #465517 and #733350.

Show diffs side-by-side

added added

removed removed

Lines of Context:
480
480
        if br_to is None:
481
481
            # We have a repository but no branch, copy the revisions, and then
482
482
            # create a branch.
 
483
            if revision_id is None:
 
484
                # No revision supplied by the user, default to the branch
 
485
                # revision
 
486
                revision_id = source.last_revision()
483
487
            repository_to.fetch(source.repository, revision_id=revision_id)
484
488
            br_to = source.clone(self, revision_id=revision_id)
485
489
            if source.get_push_location() is None or remember: