576
576
return self._real_repository.check(revision_ids)
578
578
def copy_content_into(self, destination, revision_id=None, basis=None):
579
# get a tarball of the remote repository, and copy from that into the
581
from bzrlib import osutils
580
584
from StringIO import StringIO
581
tempfile = StringIO(self._get_tarball('bz2'))
582
tar = tarfile.open('repository', fileobj=tempfile,
585
tar_file = StringIO(self._get_tarball('bz2'))
586
tar = tarfile.open('repository', fileobj=tar_file,
584
import pdb;pdb.set_trace()
586
return self._real_repository.copy_content_into(
587
destination, revision_id=revision_id, basis=basis)
588
tmpdir = tempfile.mkdtemp()
590
tar.extractall(tmpdir)
591
tmp_repo = repository.Repository.open(tmpdir)
592
tmp_repo.copy_content_into(destination, revision_id, basis)
595
## osutils.rmtree(tmpdir)
596
# TODO: if the server doesn't support this operation, maybe do it the
597
# slow way using the _real_repository?
589
599
def set_make_working_trees(self, new_value):
590
600
raise NotImplementedError(self.set_make_working_trees)