~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-01-17 17:21:14 UTC
  • mfrom: (2229.2.5 reserved-ids)
  • Revision ID: pqm@pqm.ubuntu.com-20070117172114-dc75493dad46088c
Ensure reserved ids are never stored

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 
98
98
        returns the sha1 of the serialized inventory.
99
99
        """
 
100
        _mod_revision.check_not_reserved_id(revid)
100
101
        assert inv.revision_id is None or inv.revision_id == revid, \
101
102
            "Mismatch between inventory revision" \
102
103
            " id and insertion revid (%r, %r)" % (inv.revision_id, revid)
128
129
                       If supplied its signature_needed method will be used
129
130
                       to determine if a signature should be made.
130
131
        """
 
132
        _mod_revision.check_not_reserved_id(rev_id)
131
133
        if config is not None and config.signature_needed():
132
134
            if inv is None:
133
135
                inv = self.get_inventory(rev_id)