~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

merge in lsdiff/filterdiff friendliness

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
        BzrError.__init__(self, msg)
124
124
 
125
125
 
 
126
class NotAncestor(BzrError):
 
127
    def __init__(self, rev_id, not_ancestor_id):
 
128
        self.rev_id = rev_id
 
129
        self.not_ancestor_id = not_ancestor_id
 
130
        msg = "Revision %s is not an ancestor of %s" % (not_ancestor_id, 
 
131
                                                        rev_id)
 
132
        BzrError.__init__(self, msg)
 
133
 
 
134
 
126
135
class InstallFailed(BzrError):
127
136
    def __init__(self, revisions):
128
137
        self.revisions = revisions