~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 07:06:17 UTC
  • mto: This revision was merged to the branch mainline in revision 1459.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016070617-825ca9863ba0bc91
Teach CompressedTextStore._relpath to support file suffixes too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    'goodbye'
58
58
    """
59
59
 
60
 
    def _relpath(self, fileid):
61
 
        return super(CompressedTextStore, self)._relpath(fileid, ['gz'])
 
60
    def _relpath(self, fileid, suffixes=[]):
 
61
        suffixes = suffixes + ['gz']
 
62
        return super(CompressedTextStore, self)._relpath(fileid, suffixes)
62
63
 
63
64
    def _add(self, fn, f):
64
65
        from cStringIO import StringIO