/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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-10-16 04:21:07 UTC
  • mfrom: (1986.5.8 init-tree-overhead)
  • Revision ID: pqm@pqm.ubuntu.com-20061016042107-3868eeaa654059ae
(Robert Collins, John Arbash Meinel) Reduce inventory write operations during tree construction by making tree inventory writes occur at tree unlock time. This adds WorkingTree.flush() and alters set_root_id to not write the inventory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        self.branch = branch
184
184
 
185
185
 
 
186
class InventoryModified(BzrNewError):
 
187
    """The current inventory for the tree %(tree)r has been modified, so a clean inventory cannot be read without data loss."""
 
188
 
 
189
    def __init__(self, tree):
 
190
        BzrNewError.__init__(self)
 
191
        self.tree = tree
 
192
 
 
193
 
186
194
class NoSuchId(BzrNewError):
187
195
    """The file id %(file_id)s is not present in the tree %(tree)s."""
188
196
    
212
220
        self.url = url
213
221
 
214
222
 
 
223
class NotWriteLocked(BzrNewError):
 
224
    """%(not_locked)r is not write locked but needs to be."""
 
225
 
 
226
    def __init__(self, not_locked):
 
227
        BzrNewError.__init__(self)
 
228
        self.not_locked = not_locked
 
229
 
 
230
 
215
231
class BzrCommandError(BzrNewError):
216
232
    """Error from user command"""
217
233