~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Robert Collins
  • Date: 2009-08-27 05:22:14 UTC
  • mto: (4634.6.11 2.0)
  • mto: This revision was merged to the branch mainline in revision 4664.
  • Revision ID: robertc@robertcollins.net-20090827052214-k3wgb0cqupehghnr
(robertc) Handle IncompatibleRepositories better with bzr:// connections. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
364
364
        return ('FileExists', err.path)
365
365
    elif isinstance(err, errors.DirectoryNotEmpty):
366
366
        return ('DirectoryNotEmpty', err.path)
 
367
    elif isinstance(err, errors.IncompatibleRepositories):
 
368
        return ('IncompatibleRepositories', str(err.source), str(err.target),
 
369
            str(err.details))
367
370
    elif isinstance(err, errors.ShortReadvError):
368
371
        return ('ShortReadvError', err.path, str(err.offset), str(err.length),
369
372
                str(err.actual))