~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2008-07-28 08:43:03 UTC
  • mto: This revision was merged to the branch mainline in revision 3588.
  • Revision ID: mbp@sourcefrog.net-20080728084303-rjroyiv5oe2jto26
Default InterRepository.fetch raises IncompatibleRepositories

Show diffs side-by-side

added added

removed removed

Lines of Context:
774
774
 
775
775
class IncompatibleRepositories(BzrError):
776
776
 
777
 
    _fmt = "Repository %(target)s is not compatible with repository"\
778
 
        " %(source)s"
 
777
    _fmt = "%(target)s\n" \
 
778
            "is not compatible with\n" \
 
779
            "%(source)s\n" \
 
780
            "%(details)s"
779
781
 
780
 
    def __init__(self, source, target):
781
 
        BzrError.__init__(self, target=target, source=source)
 
782
    def __init__(self, source, target, details=None):
 
783
        if details == None:
 
784
            details = "(no details)"
 
785
        BzrError.__init__(self, target=target, source=source, details=details)
782
786
 
783
787
 
784
788
class IncompatibleRevision(BzrError):