/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-17 15:37:08 UTC
  • mto: This revision was merged to the branch mainline in revision 2239.
  • Revision ID: abentley@panoramicfeedback.com-20070117153708-4jni0ycaitv7xgra
change reserved_id to is_reserved_id, add check_not_reserved for DRY

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