~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

(robertc) Handle IncompatibleRepositories better with bzr://
        connections. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2759
2759
                    'Missing key %r in context %r', key_err.args[0], context)
2760
2760
                raise err
2761
2761
 
2762
 
    if err.error_verb == 'NoSuchRevision':
 
2762
    if err.error_verb == 'IncompatibleRepositories':
 
2763
        raise errors.IncompatibleRepositories(err.error_args[0],
 
2764
            err.error_args[1], err.error_args[2])
 
2765
    elif err.error_verb == 'NoSuchRevision':
2763
2766
        raise NoSuchRevision(find('branch'), err.error_args[0])
2764
2767
    elif err.error_verb == 'nosuchrevision':
2765
2768
        raise NoSuchRevision(find('repository'), err.error_args[0])