~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2005-10-03 01:15:02 UTC
  • mfrom: (1092.2.28)
  • Revision ID: robertc@robertcollins.net-20051003011502-f579a509a136b774
mergeĀ fromĀ baz2bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
        self.not_ancestor_id = not_ancestor_id
139
139
 
140
140
 
 
141
class NotAncestor(BzrError):
 
142
    def __init__(self, rev_id, not_ancestor_id):
 
143
        self.rev_id = rev_id
 
144
        self.not_ancestor_id = not_ancestor_id
 
145
        msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id, 
 
146
                                                        rev_id)
 
147
        BzrError.__init__(self, msg)
 
148
 
 
149
 
141
150
class InstallFailed(BzrError):
142
151
    def __init__(self, revisions):
143
152
        msg = "Could not install revisions:\n%s" % " ,".join(revisions)