~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: John Arbash Meinel
  • Date: 2007-01-24 20:40:20 UTC
  • mfrom: (2242 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2245.
  • Revision ID: john@arbash-meinel.com-20070124204020-szyxbjpn9mzbsks7
[merge] bzr.dev 2242

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)