~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Various changes to allow non-workingtree specific tests to run entirely
from MemoryTransports:
 * Create MemoryTree and pull up common code for it from WorkingTree to
   a new common base class MutableTree.
 * Add MutableTree.mkdir().
 * Add MutableTree.put_file_bytes_nonatomic().
 * New test helper make_branch_and_memory_tree().
(Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
                % (self.__class__.__name__, str(e))
138
138
 
139
139
 
 
140
class AlreadyBuilding(BzrNewError):
 
141
    """The tree builder is already building a tree."""
 
142
 
 
143
 
140
144
class BzrCheckError(BzrNewError):
141
145
    """Internal check failed: %(message)s"""
142
146
 
182
186
        self.base = base
183
187
 
184
188
 
 
189
class NotBuilding(BzrNewError):
 
190
    """Not currently building a tree."""
 
191
 
 
192
 
185
193
class NotLocalUrl(BzrNewError):
186
194
    """%(url)s is not a local path."""
187
195