/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/smart/repository.py

  • Committer: Martin Pool
  • Date: 2008-05-27 08:12:28 UTC
  • mfrom: (3453 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3455.
  • Revision ID: mbp@sourcefrog.net-20080527081228-2ft0nnz7edsz1jfa
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
350
350
 
351
351
    def do_repository_request(self, repository, compression):
352
352
        from bzrlib import osutils
353
 
        repo_transport = repository.control_files._transport
354
353
        tmp_dirname, tmp_repo = self._copy_to_tempdir(repository)
355
354
        try:
356
355
            controldir_name = tmp_dirname + '/.bzr'
389
388
            dirname = dirname.encode(sys.getfilesystemencoding())
390
389
            # python's tarball module includes the whole path by default so
391
390
            # override it
392
 
            assert dirname.endswith('.bzr')
 
391
            if not dirname.endswith('.bzr'):
 
392
                raise ValueError(dirname)
393
393
            tarball.add(dirname, '.bzr') # recursive by default
394
394
        finally:
395
395
            tarball.close()