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

Re: PATCH: add -R ignores "directory exists" error

From: Justin Erenkrantz <jerenkrantz_at_apache.org>
Date: 2002-08-18 21:12:12 CEST

On Sun, Aug 18, 2002 at 12:01:54PM -0700, solo turn wrote:
> currently svn add -R stops on the first directory which exists, and
> you have to fiddle out all the files you added by your own. this
> patch allows to run svn -R in the wc-root, and add all new files.
>
> Index: ./subversion/libsvn_client/add.c
> ===================================================================
> --- ./subversion/libsvn_client/add.c
> +++ ./subversion/libsvn_client/add.c 2002-08-18 20:40:44.593890000
> +0200
> @@ -51,10 +51,19 @@
> svn_wc_adm_access_t *dir_access;
>
> /* Add this directory to revision control. */
> - SVN_ERR (svn_wc_add (dirname, adm_access,
> + err = svn_wc_add (dirname, adm_access,
> NULL, SVN_INVALID_REVNUM,
> - notify_added, notify_baton, pool));
> + notify_added, notify_baton, pool);
>
> + if (err) {
> + if (!(err->apr_err == SVN_ERR_ENTRY_EXISTS)) {

Umm, why not:

if (err->apr_err != SVN_ERR_ENTRY_EXISTS) {

-- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 18 21:12:47 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.