/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

Add a new method ``Tree.revision_tree`` which allows access to cached
trees for arbitrary revisions. This allows the in development dirstate
tree format to provide access to the callers to cached copies of 
inventory data which are cheaper to access than inventories from the
repository. (Robert Collins, Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
        self.branch = branch
175
175
 
176
176
 
 
177
class NoSuchId(BzrNewError):
 
178
    """The file id %(file_id)s is not present in the tree %(tree)s."""
 
179
    
 
180
    def __init__(self, tree, file_id):
 
181
        BzrNewError.__init__(self)
 
182
        self.file_id = file_id
 
183
        self.tree = tree
 
184
 
 
185
 
177
186
class NoWorkingTree(BzrNewError):
178
187
    """No WorkingTree exists for %(base)s."""
179
188
    
518
527
        BzrNewError.__init__(self, branch=branch, revision=revision)
519
528
 
520
529
 
 
530
class NoSuchRevisionInTree(NoSuchRevision):
 
531
    """The revision id %(revision_id)s is not present in the tree %(tree)s."""
 
532
 
 
533
    def __init__(self, tree, revision_id):
 
534
        BzrNewError.__init__(self)
 
535
        self.tree = tree
 
536
        self.revision_id = revision_id
 
537
 
 
538
 
521
539
class NoSuchRevisionSpec(BzrNewError):
522
540
    """No namespace registered for string: %(spec)r"""
523
541