/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 in the BranchBuilder updates, which brings in a newer bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
562
562
        PathError.__init__(self, base, reason)
563
563
 
564
564
 
 
565
class InvalidRebaseURLs(PathError):
 
566
 
 
567
    _fmt = "URLs differ by more than path: %(from_)r and %(to)r"
 
568
 
 
569
    def __init__(self, from_, to):
 
570
        self.from_ = from_
 
571
        self.to = to
 
572
        PathError.__init__(self, from_, 'URLs differ by more than path.')
 
573
 
 
574
 
565
575
class UnavailableRepresentation(InternalBzrError):
566
576
 
567
577
    _fmt = ("The encoding '%(wanted)s' is not available for key %(key)s which "
574
584
        self.key = key
575
585
 
576
586
 
 
587
class UnknownBuildAction(BzrError):
 
588
    """Raised when a BranchBuilder gets an action it doesn't know"""
 
589
 
 
590
    _fmt = "Unknown build action: %(action)s"
 
591
 
 
592
    def __init__(self, action):
 
593
        BzrError.__init__(self)
 
594
        self.action = action
 
595
 
 
596
 
577
597
class UnknownHook(BzrError):
578
598
 
579
599
    _fmt = "The %(type)s hook '%(hook)s' is unknown in this version of bzrlib."
848
868
        BzrError.__init__(self, filename=filename, kind=kind)
849
869
 
850
870
 
 
871
class BadFilenameEncoding(BzrError):
 
872
 
 
873
    _fmt = ('Filename %(filename)r is not valid in your current filesystem'
 
874
            ' encoding %(fs_encoding)s')
 
875
 
 
876
    def __init__(self, filename, fs_encoding):
 
877
        BzrError.__init__(self)
 
878
        self.filename = filename
 
879
        self.fs_encoding = fs_encoding
 
880
 
 
881
 
851
882
class ForbiddenControlFileError(BzrError):
852
883
 
853
884
    _fmt = 'Cannot operate on "%(filename)s" because it is a control file'
2760
2791
    def __init__(self, host, port, orig_error):
2761
2792
        BzrError.__init__(self, host=host, port=port,
2762
2793
            orig_error=orig_error[1])
 
2794
 
 
2795
 
 
2796
class UnknownRules(BzrError):
 
2797
 
 
2798
    _fmt = ('Unknown rules detected: %(unknowns_str)s.')
 
2799
 
 
2800
    def __init__(self, unknowns):
 
2801
        BzrError.__init__(self, unknowns_str=", ".join(unknowns))