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

svn_client_status_func_t callback - Java binding may expect an abspath

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Thu, 23 Jun 2011 17:47:56 +0100

Hyrum or anyone,

svn_client_status_func_t is declared as

  /** A callback for reporting a @a status about @a local_abspath.
  ... */
  typedef svn_error_t *(*svn_client_status_func_t)(
                           void *baton,
                           const char *path,
                           const svn_client_status_t *status,
                           apr_pool_t *scratch_pool);

but its "path" parameter is not called "local_abspath" and is not
guaranteed to be an abspath, which is evident from the implementation.

I am satisfied that all but one of the current callbacks is happy with a
non-absolute path. The only one I can't validate is the JavaHL binding:

  SVNClient::status() in SVNClient.cpp

where, according to the parameter names, it expects an abspath.

Can someone better able to follow the Java code check this?

Then I think we just need to adjust the doc string to say something like
"path, which may be absolute or relative", and rename the JavaHL
parameters to "path".

- Julian
Received on 2011-06-23 18:48:34 CEST

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.