/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Aaron Bentley
  • Date: 2007-01-11 17:20:25 UTC
  • mto: This revision was merged to the branch mainline in revision 2239.
  • Revision ID: abentley@panoramicfeedback.com-20070111172025-8rnvvm3jqx7h5uvv
Reject reserved ids in versiondfile, tree, branch and repository

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
        if _mod_revision.reserved_id(revid):
 
101
            raise errors.ReservedId(revid)
100
102
        assert inv.revision_id is None or inv.revision_id == revid, \
101
103
            "Mismatch between inventory revision" \
102
104
            " id and insertion revid (%r, %r)" % (inv.revision_id, revid)
128
130
                       If supplied its signature_needed method will be used
129
131
                       to determine if a signature should be made.
130
132
        """
 
133
        if _mod_revision.reserved_id(rev_id):
 
134
            raise errors.ReservedId(rev_id)
131
135
        if config is not None and config.signature_needed():
132
136
            if inv is None:
133
137
                inv = self.get_inventory(rev_id)