~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Give a reasonable warning on attempts to upgrade a readonly url.

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
class PointlessCommit(BzrNewError):
264
264
    """No changes to commit"""
265
265
 
 
266
 
 
267
class UpgradeReadonly(BzrNewError):
 
268
    """Upgrade URL cannot work with readonly URL's."""
 
269
 
 
270
 
266
271
class StrictCommitFailed(Exception):
267
272
    """Commit refused because there are unknowns in the tree."""
268
273
 
 
274
 
269
275
class NoSuchRevision(BzrError):
270
276
    def __init__(self, branch, revision):
271
277
        self.branch = branch