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

Re: svn commit: rev 7197 - trunk/subversion/libsvn_wc

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-09-26 18:50:02 CEST

sussman@tigris.org writes:

> Author: sussman
> Date: Thu Sep 25 17:38:49 2003
> New Revision: 7197

> + for (hi = apr_hash_first (pool, entries); hi; hi = apr_hash_next (hi))
> + {
> + const void *key;
> + void *val;
> + const char *name;
> + svn_wc_entry_t *current_entry;
> +
> + apr_hash_this (hi, &key, NULL, &val);
> + name = key;
> + current_entry = val;
> +
> + if (current_entry->deleted)
> + {
> + if (eb->target_deleted)
> + /* if the target of the update is 'deleted', we leave it
> + be. see r6748, issue #919. */
> + continue;
> + else
> + svn_wc__entry_remove (entries, name);
> + }
> + else if (current_entry->kind == svn_node_dir)
> + {
> + const char *child_path = svn_path_join (bdi->path, name, subpool);
> +
> + if (svn_wc__adm_missing (adm_access, child_path))
> + {
> + svn_wc__entry_remove (entries, name);
> + if (eb->notify_func)
> + (* eb->notify_func) (eb->notify_baton, child_path,
> + svn_wc_notify_delete,
> + current_entry->kind, NULL,
> + svn_wc_notify_state_unknown,
> + svn_wc_notify_state_unknown,
> + SVN_INVALID_REVNUM);
> + }
> + }
> +
> + svn_pool_clear (subpool);

Our pool guidelines recommend clearing the pool at the start of the
loop (not that it makes any difference in this case).

> + }

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Sep 26 18:50:48 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.