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

Re: client api not optimal

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-08-25 22:28:59 CEST

"Ich selbst" <ichselbst@gmx.ch> writes:

> > Subversion depends on APR, your application is going to link against
> > APR, so using APR types doesn't seem unreasonable.
> Only if you compile the complete source of Subversion for the client. But
> I hope that there will be compiled libraries to link to for clients. And
> then

The Subversion libraries depend on APR, so you *will* have to link
against APR.

> you would need not just one but many many header files to include
> (and look through if you don't use C or C++ and can't include those headers
> directly)

If you want to use Subversion from a language that doesn't directly
support C then you will need appropriate bindings, that's how
multi-language programming works. If you use language X, where
someone else has already provided bindings, then use those. If you
use language Y, where no one has yet provided bindings, then you get
to write the bindings :-)

What so hard about searching header files anyway? One grep from the
command line (or I suppose a GUI based search for IDE people). Or set
up a TAGS file and use Emacs tags. Or whatever, just use an
appropriate tool.

>
> > [snip]
> >
> > > - instead of the auth_baton use 'username' and 'password' - thats more
> > > understandable
> >
> > When you call svn_client_checkout, say, you do not know if a username
> > or password is required. Do you intend to always prompt the user for
> > these, even if they are not required? Isn't that a little primitive?
> > The point of the auth_baton is that if the data are not required then
> > there is no need to provide them.
> I don't want the user to enter those every time, but once. And then store
> those during a whole session.

You have missed the point. Why should I enter them once if they are
not required? The auth_baton has callbacks to get the username and
password, if the auth data are not required the callbacks do not get
called and so I never enter the data. If the auth data are required,
the callbacks should request the data and cache it. That's how the
command line client does it.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 25 22:29:35 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.