On Thu, Apr 10, 2008 at 1:22 AM, <lgo_at_tigris.org> wrote:
> Author: lgo
> Date: Thu Apr 10 01:22:45 2008
> New Revision: 30482
>
> Log:
> Fix issue in svnsync where a repository 'file:///repository' was incorrectly
> recognized as child of 'file:///repo', requiring partial replay capability.
>
> Found by: glasser
>
> * subversion/svnsync/main.c
> (do_initialize): Use correct url comparison function.
>
> Modified:
> trunk/subversion/svnsync/main.c
>
> Modified: trunk/subversion/svnsync/main.c
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/svnsync/main.c?pathrev=30482&r1=30481&r2=30482
> ==============================================================================
> --- trunk/subversion/svnsync/main.c Thu Apr 10 01:03:48 2008 (r30481)
> +++ trunk/subversion/svnsync/main.c Thu Apr 10 01:22:45 2008 (r30482)
> @@ -626,7 +626,7 @@ do_initialize(svn_ra_session_t *to_sessi
>
> /* If we're doing a partial replay, we have to check first if the server
> supports this. */
> - if (strcmp(root_url, baton->from_url) < 0)
> + if (svn_path_is_ancestor(root_url, baton->from_url))
But won't that return true if the paths are equal?
The case I was concerned about wasn't /repo vs /repository (since I
don't think opening /repository will give you something with a repo
root of /repo); it was "spurious extra slashes".
--dave
> {
> svn_boolean_t server_supports_partial_replay;
> svn_error_t *err = svn_ra_has_capability(from_session,
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svn-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: svn-help_at_subversion.tigris.org
>
>
--
David Glasser | glasser@davidglasser.net | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-04-10 11:12:00 CEST