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

Looking for auth. info. in the WC

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-09-24 00:41:58 CEST

Is this concept of getting authentication information from the working copy still relevant?

svn_client_cat calls svn_client__dir_if_wc (&auth_dir, "", pool) and passes this "auth_dir" as the "base_dir" argument to svn_client__open_ra_session(), while it doesn't really intend to access the WC at all.

/* Set *DIR_P to DIR if DIR is a working copy directory, else set to NULL.
 * DIR may not be a file. Use POOL only for temporary allocation.
 *
 * Purpose: Helper for callers of svn_client__open_ra_session(),
 * who if not passed a working copy path as an argument, will often
 * wish to try the current directory for auth information, but only if
 * it is a working copy.
 */
svn_error_t *svn_client__dir_if_wc (const char **dir_p,
                                    const char *dir,
                                    apr_pool_t *pool);

This function may be of use for other purposes, but I was under the impression that auth info had been removed from the WC some time ago. Shall I remove such usage, or am I misunderstanding?

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 24 00:42:16 2003

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.