~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/revision/knit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-08 08:12:00 UTC
  • mfrom: (2858.2.5 remove-checks)
  • Revision ID: pqm@pqm.ubuntu.com-20071008081200-04a0byt5lo5tyft9
Remove old calls to safe_file_id and safe_revision_id (mbp)

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
    def add_revision_signature_text(self, revision_id, signature_text, transaction):
77
77
        """See RevisionStore.add_revision_signature_text()."""
78
 
        revision_id = osutils.safe_revision_id(revision_id)
79
78
        self.get_signature_file(transaction).add_lines(
80
79
            revision_id, [], osutils.split_lines(signature_text))
81
80
 
86
85
 
87
86
    def get_revisions(self, revision_ids, transaction):
88
87
        """See RevisionStore.get_revisions()."""
89
 
        revision_ids = [osutils.safe_revision_id(r) for r in revision_ids]
90
88
        texts = self._get_serialized_revisions(revision_ids, transaction)
91
89
        revisions = []
92
90
        try:
130
128
 
131
129
    def has_revision_id(self, revision_id, transaction):
132
130
        """True if the store contains revision_id."""
133
 
        revision_id = osutils.safe_revision_id(revision_id)
134
131
        return (_mod_revision.is_null(revision_id)
135
132
                or self.get_revision_file(transaction).has_version(revision_id))
136
133