~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/compressed_text.py

Merged 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)