~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/compressed_text.py

  • Committer: Robert Collins
  • Date: 2005-11-03 16:08:17 UTC
  • mfrom: (1185.16.146)
  • Revision ID: robertc@robertcollins.net-20051103160817-ce8f8dbaafab2a22
MergeĀ fromĀ Martin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    def _copy_one(self, fileid, suffix, other, pb):
82
82
        if not (isinstance(other, CompressedTextStore)
83
83
            and other._prefixed == self._prefixed):
84
 
            return super(CompressedTextStore, self)._copy_one(fileid, suffix,
85
 
                                                              other, pb)
 
84
            return super(CompressedTextStore, self)._copy_one(fileid, suffix, other, pb)
86
85
        if suffix is None or suffix == 'gz':
87
86
            path = self._relpath(fileid)
88
87
        else:
89
88
            path = self._relpath(fileid, [suffix])
90
 
        assert other._transport.copy_to([path], self._transport, pb=pb) == 1
 
89
        result = other._transport.copy_to([path], self._transport, pb=pb)
 
90
        assert result == 1      # or what???
91
91
 
92
92
    def __init__(self, transport, prefixed=False):
93
93
        super(CompressedTextStore, self).__init__(transport, prefixed)