/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/remote.py

  • Committer: Martin Pool
  • Date: 2007-04-23 09:52:50 UTC
  • mto: (2018.18.24 hpss-faster-copy)
  • mto: This revision was merged to the branch mainline in revision 2462.
  • Revision ID: mbp@sourcefrog.net-20070423095250-xzaleukzs05x9lp0
Add new Repository.sprout,

Cleaner in intention and purpose than copy_content_into.  It doesn't copy the
extra settings of the repository (like working-trees and shared), which is
normally what you'll want.

Show diffs side-by-side

added added

removed removed

Lines of Context:
427
427
        self._ensure_real()
428
428
        return self._real_repository.break_lock()
429
429
 
 
430
    def sprout(self, to_bzrdir, revision_id=None):
 
431
        # TODO: Option to control what format is created?
 
432
        to_repo = to_bzrdir.create_repository()
 
433
        to_repo.fetch(self, revision_id=revision_id)
 
434
        return to_repo
 
435
 
430
436
    ### These methods are just thin shims to the VFS object for now.
431
437
 
432
438
    def revision_tree(self, revision_id):