/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/remote.py

  • Committer: Robert Collins
  • Date: 2009-08-26 01:18:13 UTC
  • mto: This revision was merged to the branch mainline in revision 4656.
  • Revision ID: robertc@robertcollins.net-20090826011813-46x8kcuzwz97opoi
Deserialise IncompatibleRepositories errors in the client, generating
nicer feedback when the smart server encounters such a situation.

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])