~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.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:
134
134
class InvalidRevisionId(BzrNewError):
135
135
    """Invalid revision-id {%(revision_id)s} in %(branch)s"""
136
136
    def __init__(self, revision_id, branch):
 
137
        # branch can be any string or object with __str__ defined
137
138
        BzrNewError.__init__(self)
138
139
        self.revision_id = revision_id
139
140
        self.branch = branch