/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

Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
943
943
 
944
944
class KnitHeaderError(KnitError):
945
945
 
946
 
    _fmt = "Knit header error: %(badline)r unexpected"
 
946
    _fmt = "Knit header error: %(badline)r unexpected for file %(filename)s"
947
947
 
948
 
    def __init__(self, badline):
 
948
    def __init__(self, badline, filename):
949
949
        KnitError.__init__(self)
950
950
        self.badline = badline
 
951
        self.filename = filename
951
952
 
952
953
 
953
954
class KnitCorrupt(KnitError):
1424
1425
        self.tname = type(method_self).__name__
1425
1426
 
1426
1427
 
 
1428
class CannotSetRevisionId(UnsupportedOperation):
 
1429
    """Raised when a commit is attempting to set a revision id but cant."""
 
1430
 
 
1431
 
 
1432
class NonAsciiRevisionId(UnsupportedOperation):
 
1433
    """Raised when a commit is attempting to set a non-ascii revision id but cant."""
 
1434
 
 
1435
 
1427
1436
class BinaryFile(BzrError):
1428
1437
    
1429
1438
    _fmt = "File is binary but should be text."