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

Feedback, clients/cmdline/main.c:978 r1639

From: Jennifer Bevan <jen_at_bounce.alouysius.net>
Date: 2002-04-05 08:16:58 CEST

Hi again,
So, I'm using Ben's suggestion to use subversion/clients/cmdline
as a template for getting my client working, and am currently
in main.c trying to make sure that I call all of the appropriate
functions before calling svn_client_checkout(). The comment that
discusses line 988 states that "err = svn_config_ensure (pool);"
is necessary to call, is not in libsvn_client due to the absence
of an svn_client_init(), and considers that it might be burdensome
to demand that all client apps call svn_client_init() -- issues of
maintainability aside.

My two cents are that (as Ben helped me find out), I already have
to call apr_initialize() before doing anything with pools, I
need to call svn_create_pool() in order to do pretty much anything
else, and apparently I have to call svn_config_ensure() as well.
A nice "svn_client_init()" would be really nice from my point of
view -- especially as I am just learning the subversion vocabulary.
Perhaps something along the lines of an "apr_pool_t *svn_client_init()"
that would call all of those nice setup functions for me in one
fell swoop? Ben's right -- Imitation is the best way to get something
working, but the subversion initialization has at least three
methods that might be wrapped up just for user friendliness' sake.

Thanks,
-Jen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 5 08:17:46 2002

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.