~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Olaf Conradi
  • Date: 2006-05-15 22:54:09 UTC
  • mto: (1668.1.14 bzr-0.8.mbp)
  • mto: This revision was merged to the branch mainline in revision 1710.
  • Revision ID: olaf@conradi.org-20060515225409-071211ddf818569a
Fix bug in knits when raising InvalidRevisionId without the required
number of arguments. Fixes #44284.

Show diffs side-by-side

added added

removed removed

Lines of Context:
629
629
        assert self.writable, "knit is not opened for write"
630
630
        ### FIXME escape. RBC 20060228
631
631
        if contains_whitespace(version_id):
632
 
            raise InvalidRevisionId(version_id)
 
632
            raise InvalidRevisionId(version_id, self.filename)
633
633
        if self.has_version(version_id):
634
634
            raise RevisionAlreadyPresent(version_id, self.filename)
635
635
        self._check_lines_not_unicode(lines)