~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Andrew Bennetts
  • Date: 2008-10-31 01:57:16 UTC
  • mto: This revision was merged to the branch mainline in revision 3814.
  • Revision ID: andrew.bennetts@canonical.com-20081031015716-xxizi0n4selzzrvr
Return ('ok',) rather than an error the autopack RPC is used on a non-pack repo.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1842
1842
        raise errors.UnstackableRepositoryFormat(*err.error_args)
1843
1843
    elif err.error_verb == 'NotStacked':
1844
1844
        raise errors.NotStacked(branch=find('branch'))
1845
 
    elif err.error_verb == 'NotPackRepository':
1846
 
        # There's no specific exception to raise for this, because it shouldn't
1847
 
        # happen unless something has changed the remote repo's format between
1848
 
        # smart requests.
1849
 
        raise errors.InternalBzrError(
1850
 
            'Tried to use PackRepository verb, but remote side says '
1851
 
            '%s is not a pack repository.' % (find('repository')))
1852
1845
    elif err.error_verb == 'PermissionDenied':
1853
1846
        path = get_path()
1854
1847
        if len(err.error_args) >= 2: