Daniel Westermann-Clark <dwc@tigris.org>


Patch
r861518, r861516

r861518 | dlr | 2006-09-11 16:11:53 -0500 (Mon, 11 Sep 2006)

Fix issue #660: Notify ra_dav user of repository redirection or
relocation.

(The libsvn_ra_dav portion of this change occurred in r21442.)

* subversion/include/svn_error_codes.h
  (SVN_ERR_RA_DAV_RELOCATED): SVN_ERRDEF for moved/relocated repositories.
  

* subversion/libsvn_ra_dav/ra_dav.h
  (interrogate_for_location): Add prototype.

  (svn_ra_dav__request_dispatch): Update prototype to accept
   interrogator regardless of Neon version.

  
* subversion/libsvn_ra_dav/commit.c
  (interrogate_for_location): Move to util.c.


* subversion/libsvn_ra_dav/fetch.c
  (interrogate_for_content_type): Make compatible with Neon < 0.25
   using ne_add_response_header_handler.  (A nicety made possible by
   the remainder of this change.)

  (custom_get_request): Always pass interrogate_for_content_type when
   dispatching the request.


* subversion/libsvn_ra_dav/util.c
  (interrogate_for_location): Move from commit.c and make compatible
   with Neon < 0.25.

  (parsed_request): For response status codes 301 and 302, provide an
   error message with the new location of the repository based on the
   Location response header.

  (svn_ra_dav__request_dispatch): Update prototype to accept
   interrogator regardless of Neon version.


Patch by: Daniel Westermann-Clark <dwc@tigris.org>
(Tweaked by me.)
Suggested by: mbk
              gstein
Reviewed by: me


r861516 | dlr | 2006-09-11 16:04:03 -0500 (Mon, 11 Sep 2006)

Fix issue #660: Notify ra_dav user of repository redirection or
relocation.

(The svn_error_codes.h portion of this change occurred in r21444.)

* subversion/include/svn_error_codes.h
  (SVN_ERR_RA_DAV_RELOCATED): SVN_ERRDEF for moved/relocated repositories.
  

* subversion/libsvn_ra_dav/ra_dav.h
  (interrogate_for_location): Add prototype.

  (svn_ra_dav__request_dispatch): Update prototype to accept
   interrogator regardless of Neon version.

  
* subversion/libsvn_ra_dav/commit.c
  (interrogate_for_location): Move to util.c.


* subversion/libsvn_ra_dav/fetch.c
  (interrogate_for_content_type): Make compatible with Neon < 0.25
   using ne_add_response_header_handler.  (A nicety made possible by
   the remainder of this change.)

  (custom_get_request): Always pass interrogate_for_content_type when
   dispatching the request.


* subversion/libsvn_ra_dav/util.c
  (interrogate_for_location): Move from commit.c and make compatible
   with Neon < 0.25.

  (parsed_request): For response status codes 301 and 302, provide an
   error message with the new location of the repository based on the
   Location response header.

  (svn_ra_dav__request_dispatch): Update prototype to accept
   interrogator regardless of Neon version.


Patch by: Daniel Westermann-Clark <dwc@tigris.org>
(Tweaked by me.)
Suggested by: mbk
              gstein
Reviewed by: me