~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Split out repository into .bzr/repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
        self.path = path
212
212
 
213
213
 
 
214
class NoRepositoryPresent(BzrNewError):
 
215
    """Not repository present: %(path)r"""
 
216
    def __init__(self, bzrdir):
 
217
        BzrNewError.__init__(self)
 
218
        self.path = bzrdir.transport.clone('..').base
 
219
 
 
220
 
214
221
class FileInWrongBranch(BzrNewError):
215
222
    """File %(path)s in not in branch %(branch_base)s."""
216
223