On Thu, 30 Nov 2006, Kamesh Jayachandran wrote:
> >>* subversion/svnserve/serve.c
> >> (get_merge_info):
> >> The incoming 'paths' tuple is an array of 'svn_ra_svn_item_t' and each
> >> item should be of kind 'SVN_RA_SVN_STRING'.
> >> The result is again a list of (path mergeinfo) tuple.
...
> >>--- subversion/svnserve/serve.c (revision 22389)
> >>+++ subversion/svnserve/serve.c (working copy)
> >>@@ -1354,8 +1354,15 @@
> >> SVN_ERR(svn_ra_svn_parse_tuple(params, pool, "l(?r)b", &paths, &rev,
> >> &include_parents));
> >> for (i = 0; i < paths->nelts; i++)
> >>- APR_ARRAY_IDX(paths, i, const char *) =
> >>- svn_path_canonicalize(APR_ARRAY_IDX(paths, i, const char *), pool);
> >>+ {
> >>+ svn_ra_svn_item_t *item = &APR_ARRAY_IDX(paths, i,
> >>svn_ra_svn_item_t);
> >>+
> >>+ if (item->kind != SVN_RA_SVN_STRING)
> >>+ return svn_error_create(SVN_ERR_RA_SVN_MALFORMED_DATA, NULL,
> >>+ _("path is not a string"));
> >>+ APR_ARRAY_IDX(paths, i, const char *) =
> >>+ svn_path_canonicalize(item->u.string->data, pool);
> >>+ }
> >> SVN_ERR(trivial_auth_request(conn, pool, b));
> >> SVN_CMD_ERR(svn_repos_fs_get_merge_info(&mergeinfo, b->repos, paths,
> >> rev,
> >> include_parents,
> >>@@ -1372,7 +1379,7 @@
> >> apr_hash_this(hi, &key, NULL, &value);
> >> path = key;
> >> info = value;
> >>- SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "cc", path, info));
> >>+ SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "(cc)", path,
> >>info));
> >> }
> >> SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "!))"));
> >> }
> >>
> >
> >I think this portion of the patch needs to be accompanied by changes
> >to the protocol document.
>
> I think protocol document looks good only the implementation is not
> compliant with the protocol doc :)
> <snip>
> response: ( ( ( path:string merge-info:string) ... ) )
> </snip>
> Without this patch the implementation looks like
> response: ( ( path:string merge-info:string ... ) )
I think you're right, Kamesh. Commited to the branch with some minor
adjustments in r22537.
- Dan
- application/pgp-signature attachment: stored
Received on Fri Dec 1 22:31:06 2006