~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-07-04 05:40:52 UTC
  • mfrom: (3517.3.1 error-typo)
  • Revision ID: pqm@pqm.ubuntu.com-20080704054052-6bwwl3yc0ck483x3
Fix error when raising InvalidRevisionId. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
861
861
        """check that version_id and lines are safe to add."""
862
862
        version_id = key[-1]
863
863
        if contains_whitespace(version_id):
864
 
            raise InvalidRevisionId(version_id, self.filename)
 
864
            raise InvalidRevisionId(version_id, self)
865
865
        self.check_not_reserved_id(version_id)
866
866
        # TODO: If random_id==False and the key is already present, we should
867
867
        # probably check that the existing content is identical to what is