~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

  • Committer: Aaron Bentley
  • Date: 2007-02-07 03:09:58 UTC
  • mfrom: (2268 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2269.
  • Revision ID: aaron.bentley@utoronto.ca-20070207030958-fx6ykp7rg7zma6xu
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
 
248
248
    def _lookup(self, name):
249
249
        """Convert symbolic version name to index."""
 
250
        self.check_not_reserved_id(name)
250
251
        try:
251
252
            return self._name_map[name]
252
253
        except KeyError:
1120
1121
 
1121
1122
    def _add_lines(self, version_id, parents, lines, parent_texts):
1122
1123
        """Add a version and save the weave."""
 
1124
        self.check_not_reserved_id(version_id)
1123
1125
        result = super(WeaveFile, self)._add_lines(version_id, parents, lines,
1124
1126
                                                   parent_texts)
1125
1127
        self._save()