/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 breezy/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-06 01:18:08 UTC
  • mfrom: (7143 work)
  • mto: This revision was merged to the branch mainline in revision 7151.
  • Revision ID: jelmer@jelmer.uk-20181106011808-y870f4vq0ork3ahu
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
560
560
(use brz checkout if you wish to build a working tree): "%(path)s"'
561
561
 
562
562
 
563
 
class AtomicFileAlreadyClosed(PathError):
564
 
 
565
 
    _fmt = ('"%(function)s" called on an AtomicFile after it was closed:'
566
 
            ' "%(path)s"')
567
 
 
568
 
    def __init__(self, path, function):
569
 
        PathError.__init__(self, path=path, extra=None)
570
 
        self.function = function
571
 
 
572
 
 
573
563
class InaccessibleParent(PathError):
574
564
 
575
565
    _fmt = ('Parent not accessible given base "%(base)s" and'
602
592
        self.format = format
603
593
 
604
594
 
 
595
class LineEndingError(BzrError):
 
596
 
 
597
    _fmt = ("Line ending corrupted for file: %(file)s; "
 
598
            "Maybe your files got corrupted in transport?")
 
599
 
 
600
    def __init__(self, file):
 
601
        self.file = file
 
602
 
 
603
 
605
604
class IncompatibleFormat(BzrError):
606
605
 
607
606
    _fmt = "Format %(format)s is not compatible with .bzr version %(controldir)s."
1407
1406
        BzrError.__init__(self, basedir=tree.basedir)
1408
1407
 
1409
1408
 
1410
 
class CantReprocessAndShowBase(BzrError):
1411
 
 
1412
 
    _fmt = ("Can't reprocess and show base, because reprocessing obscures "
1413
 
           "the relationship of conflicting lines to the base")
1414
 
 
1415
 
 
1416
1409
class GraphCycleError(BzrError):
1417
1410
 
1418
1411
    _fmt = "Cycle in graph %(graph)r"