/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

Switch the bisect code to support the fact that we can have
repeated (dir, name) pairs (dir, name, file_id) is the unique key.
Also, fix some edge cases when the page size is small so that we don't get clean
divisions of records per page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
    _fmt = "The tree builder is already building a tree."
164
164
 
165
165
 
 
166
class BisectPageSizeTooSmall(BzrError):
 
167
 
 
168
    _fmt = ("The dirstate bisect page size %(size)s is too small."
 
169
            " We were unable to read an entire record.")
 
170
 
 
171
    internal_error = True
 
172
 
 
173
    def __init__(self, size):
 
174
        BzrError.__init__(self)
 
175
        self.size = size
 
176
 
 
177
 
166
178
class BzrCheckError(BzrError):
167
179
    
168
180
    _fmt = "Internal check failed: %(message)s"