/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Andrew Bennetts
  • Date: 2008-07-03 08:16:47 UTC
  • mto: This revision was merged to the branch mainline in revision 3523.
  • Revision ID: andrew.bennetts@canonical.com-20080703081647-5rxu2mlodpewsbmu
Fix error in error path.

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