~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/__init__.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:
214
214
        self._transport = transport
215
215
        self._prefixed = prefixed
216
216
 
217
 
    def _relpath(self, fileid):
 
217
    def _relpath(self, fileid, suffixes=[]):
218
218
        self._check_fileid(fileid)
219
219
        if self._prefixed:
220
 
            return hash_prefix(fileid) + fileid
 
220
            path = [hash_prefix(fileid) + fileid]
221
221
        else:
222
 
            return fileid
 
222
            path = [fileid]
 
223
        path.extend(suffixes)
 
224
        return '.'.join(path)
223
225
 
224
226
    def __repr__(self):
225
227
        if self._transport is None: