/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

  • Committer: Aaron Bentley
  • Date: 2007-03-28 13:56:45 UTC
  • mto: (2323.5.14 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2390.
  • Revision ID: abentley@panoramicfeedback.com-20070328135645-0nucuw6ijokpe076
Give a nicer error on fetch when repos are in incompatible formats

Show diffs side-by-side

added added

removed removed

Lines of Context:
550
550
        self.bzrdir = bzrdir_format
551
551
 
552
552
 
 
553
class IncompatibleRepositories(BzrError):
 
554
 
 
555
    _fmt = "Repository %(target)s is not compatible with repository"\
 
556
        " %(source)s"
 
557
 
 
558
    def __init__(self, source, target):
 
559
        BzrError.__init__(self, target=target, source=source)
 
560
 
 
561
 
553
562
class IncompatibleRevision(BzrError):
554
563
    
555
564
    _fmt = "Revision is not compatible with %(repo_format)s"