~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.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:
1077
1077
    def append_revision(self, *revision_ids):
1078
1078
        """See Branch.append_revision."""
1079
1079
        for revision_id in revision_ids:
1080
 
            if _mod_revision.reserved_id(revision_id):
1081
 
                raise errors.ReservedId(revision_id)
 
1080
            _mod_revision.check_not_reserved_id(revision_id)
1082
1081
            mutter("add {%s} to revision-history" % revision_id)
1083
1082
        rev_history = self.revision_history()
1084
1083
        rev_history.extend(revision_ids)