~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-27 20:27:46 UTC
  • mfrom: (1910.2.66 format-bumps)
  • Revision ID: pqm@pqm.ubuntu.com-20060927202746-942eb21d12b7edc7
Add support for bundles and testaments with roots

Show diffs side-by-side

added added

removed removed

Lines of Context:
398
398
        self.bzrdir = bzrdir_format
399
399
 
400
400
 
 
401
class IncompatibleRevision(BzrNewError):
 
402
    """Revision is not compatible with %(repo_format)s"""
 
403
 
 
404
    def __init__(self, repo_format):
 
405
        BzrNewError.__init__(self)
 
406
        self.repo_format = repo_format
 
407
 
 
408
 
401
409
class NotVersionedError(BzrNewError):
402
410
    """%(path)s is not versioned"""
403
411
    def __init__(self, path):
1188
1196
        BzrNewError.__init__(self)
1189
1197
 
1190
1198
 
 
1199
class IncompatibleFormat(BzrNewError):
 
1200
    """Bundle format %(bundle_format)s is incompatible with %(other)s"""
 
1201
 
 
1202
    def __init__(self, bundle_format, other):
 
1203
        BzrNewError.__init__(self)
 
1204
        self.bundle_format = bundle_format
 
1205
        self.other = other
 
1206
 
 
1207
 
1191
1208
class BadInventoryFormat(BzrNewError):
1192
1209
    """Root class for inventory serialization errors"""
1193
1210