/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Fix up all calls to InvalidRevisionId() to specify parameters.

Pointed out by Jelmer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: UTF-8 -*-
 
1
# (C) 2005 Canonical
2
2
 
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
101
101
class BzrCheckError(BzrNewError):
102
102
    """Internal check failed: %(message)s"""
103
103
    def __init__(self, message):
 
104
        BzrNewError.__init__(self)
104
105
        self.message = message
105
106
 
106
107
 
107
108
class InvalidEntryName(BzrNewError):
108
109
    """Invalid entry name: %(name)s"""
109
110
    def __init__(self, name):
 
111
        BzrNewError.__init__(self)
110
112
        self.name = name
111
113
 
112
114
 
113
115
class InvalidRevisionNumber(BzrNewError):
114
116
    """Invalid revision number %(revno)d"""
115
117
    def __init__(self, revno):
 
118
        BzrNewError.__init__(self)
116
119
        self.revno = revno
117
120
 
118
121
 
119
122
class InvalidRevisionId(BzrNewError):
120
 
    """Invalid revision-id"""
 
123
    """Invalid revision-id {%(revision_id)s} in %(branch)s"""
 
124
    def __init__(self, revision_id, branch):
 
125
        BzrNewError.__init__(self)
 
126
        self.revision_id = revision_id
 
127
        self.branch = branch
121
128
 
122
129
 
123
130
class BzrCommandError(BzrError):