/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Aaron Bentley
  • Date: 2008-08-26 20:38:46 UTC
  • mto: (3650.3.2 stacking-policy)
  • mto: This revision was merged to the branch mainline in revision 3660.
  • Revision ID: aaron@aaronbentley.com-20080826203846-qqja1nmhybdpzizy
Fix sprout to honour cloning format

Show diffs side-by-side

added added

removed removed

Lines of Context:
679
679
    @needs_read_lock
680
680
    def sprout(self, to_bzrdir, revision_id=None):
681
681
        """Create a new line of development from the branch, into to_bzrdir.
682
 
        
 
682
 
 
683
        to_bzrdir controls the branch format.
 
684
 
683
685
        revision_id: if not None, the revision history in the new branch will
684
686
                     be truncated to end with revision_id.
685
687
        """
686
 
        result = self._format.initialize(to_bzrdir)
 
688
        result = to_bzrdir.create_branch()
687
689
        self.copy_content_into(result, revision_id=revision_id)
688
690
        result.set_parent(self.bzrdir.root_transport.base)
689
691
        return result