~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Aaron Bentley
  • Date: 2008-08-28 18:57:59 UTC
  • mto: This revision was merged to the branch mainline in revision 3678.
  • Revision ID: aaron@aaronbentley.com-20080828185759-fbc45dxmvt02c3a1
Fix push to use clone all the time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
672
672
        revision_id: if not None, the revision history in the new branch will
673
673
                     be truncated to end with revision_id.
674
674
        """
675
 
        result = self._format.initialize(to_bzrdir)
 
675
        result = to_bzrdir.create_branch()
676
676
        self.copy_content_into(result, revision_id=revision_id)
677
677
        return  result
678
678