~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/weave.py

  • Committer: Robert Collins
  • Date: 2005-10-17 11:41:07 UTC
  • mfrom: (1442.1.60)
  • Revision ID: robertc@robertcollins.net-20051017114107-f5586285d825c105
Merge in first part of GPG support.

This adds check_signatures config support, triams back the transport api
to be leaner and easier to hook in suffixes - non primary streams in the store
associated with the fileid that primary data is stored in, a gpg module which
will encapsulate all signing and checking operations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
    def __iter__(self):
55
55
        l = len(WeaveStore.FILE_SUFFIX)
56
 
        for relpath, st in self._iter_relpaths():
 
56
        for relpath in self._transport.iter_files_recursive():
57
57
            if relpath.endswith(WeaveStore.FILE_SUFFIX):
58
58
                yield os.path.basename(relpath[:-l])
59
59
 
60
 
    def __contains__(self, fileid):
61
 
        """"""
 
60
    def has_id(self, fileid):
62
61
        return self._transport.has(self.filename(fileid))
63
62
 
64
63
    def _get(self, file_id):