[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r17984 - trunk/subversion/libsvn_ra_dav

From: <kfogel_at_collab.net>
Date: 2006-01-05 22:06:47 CET

Garrett Rooney <rooneg@electricjellyfish.net> writes:
> > This issue wasn't really introduced by this commit, I just happened to
> > notice it as a result of reviewing this commit:
> >
> > The documentation for 'struct copy_baton' doesn't really talk about
> > what its fields mean when they're NULL. Right now, it says:
> >
> > /* Context for parsing <D:error> bodies, used when we call ne_copy(). */
> > struct copy_baton
> > {
> > /* The method neon is about to execute. */
> > const char *method;
> >
> > /* A parser for handling <D:error> responses from mod_dav_svn. */
> > ne_xml_parser *error_parser;
> >
> > /* If <D:error> is returned, here's where the parsed result goes. */
> > svn_error_t *err;
> >
> > /* A place for allocating fields in this structure. */
> > apr_pool_t *pool;
> > };
> >
> > But when the baton is initialized above, the first three fields will
> > be NULL. What would be a good description of the semantics of that?
>
> NULL seems to indicate that we didn't hit a copy (for the "method"
> field), or that we didn't hit an error (for the other two). I'll try
> and come up with a useful description and add it.

Thanks. It's mainly the first one that wasn't immediately obvious.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 6 00:24:35 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.