~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-26 01:50:01 UTC
  • mto: (974.1.47)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: aaron.bentley@utoronto.ca-20050826015001-d8b6e6330cb6401a
Merged from bzr.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        msg = "Branch %s has no revision %s" % (branch, revision)
92
92
        BzrError.__init__(self, msg)
93
93
 
 
94
class NotAncestor(BzrError):
 
95
    def __init__(self, rev_id, not_ancestor_id):
 
96
        self.rev_id = rev_id
 
97
        self.not_ancestor_id = not_ancestor_id
 
98
        msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id, 
 
99
                                                        rev_id)
 
100
        BzrError.__init__(self, msg)
94
101
 
 
102
class InstallFailed(BzrError):
 
103
    def __init__(self, revisions):
 
104
        self.revisions = revisions
 
105
        msg = "Could not install revisions:\n%s" % " ,".join(revisions)
 
106
        BzrError.__init__(self, msg)