~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-10-16 02:25:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1459.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016022511-0bd5ebf69bd26bd2
Pull up _relpath with gz suffix for CompressedTextStore into TransportStore

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    """
59
59
 
60
60
    def _relpath(self, fileid):
61
 
        self._check_fileid(fileid)
62
 
        if self._prefixed:
63
 
            return hash_prefix(fileid) + fileid + ".gz"
64
 
        else:
65
 
            return fileid + ".gz"
 
61
        return super(CompressedTextStore, self)._relpath(fileid, ['gz'])
66
62
 
67
63
    def add(self, f, fileid):
68
64
        """Add contents of a file into the store.