~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Aaron Bentley
  • Date: 2005-08-25 20:21:55 UTC
  • mfrom: (974.1.41)
  • mto: (1092.1.42) (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: abentley@panoramicfeedback.com-20050825202155-fd1b58eb8867b367
Initial 'intervening revisions' implementation

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)
 
101
 
94
102
class InstallFailed(BzrError):
95
103
    def __init__(self, revisions):
96
104
        self.revisions = revisions