~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-12-21 04:13:14 UTC
  • mfrom: (2197.2.2 diff-refactoring)
  • Revision ID: pqm@pqm.ubuntu.com-20061221041314-2991e63a023efcf1
(mbp) initial cleanups of cmd_diff (r=john)

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)
251
250
        try:
252
251
            return self._name_map[name]
253
252
        except KeyError:
1121
1120
 
1122
1121
    def _add_lines(self, version_id, parents, lines, parent_texts):
1123
1122
        """Add a version and save the weave."""
1124
 
        self.check_not_reserved_id(version_id)
1125
1123
        result = super(WeaveFile, self)._add_lines(version_id, parents, lines,
1126
1124
                                                   parent_texts)
1127
1125
        self._save()