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

  • Committer: Aaron Bentley
  • Date: 2005-11-25 13:15:49 UTC
  • mto: (1185.65.14 storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: aaron.bentley@utoronto.ca-20051125131549-a788fd1cc848a6f0
Applied Jelmer's patch to make clone a branch operation

Show diffs side-by-side

added added

removed removed

Lines of Context:
509
509
    aliases = ['get', 'clone']
510
510
 
511
511
    def run(self, from_location, to_location=None, revision=None, basis=None):
512
 
        from bzrlib.clone import copy_branch
513
512
        import errno
514
513
        from shutil import rmtree
515
514
        if revision is None:
552
551
                else:
553
552
                    raise
554
553
            try:
555
 
                copy_branch(br_from, to_location, revision_id, basis_branch)
 
554
                br_from.clone(to_location, revision_id, basis_branch)
556
555
            except bzrlib.errors.NoSuchRevision:
557
556
                rmtree(to_location)
558
557
                msg = "The branch %s has no revision %s." % (from_location, revision[0])