~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 01:51:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1459.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016015159-580cca34cb41e771
Pull up _check_id and _relpath from Text and CompressedText stores into TransportStore

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        super(CompressedTextStore, self).__init__(transport)
62
62
        self._prefixed = prefixed
63
63
 
64
 
    def _check_fileid(self, fileid):
65
 
        if '\\' in fileid or '/' in fileid:
66
 
            raise ValueError("invalid store id %r" % fileid)
67
 
 
68
64
    def _relpath(self, fileid):
69
65
        self._check_fileid(fileid)
70
66
        if self._prefixed: