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

Re: [PATCH] wc-ng: remove a use of svn_wc_entry_t from libsvn_client

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 15 Feb 2010 14:45:45 +0000

Matthew Bentham <mjb67_at_artvps.com> writes:

> wc-ng: work towards eliminating svn_wc_entry_t
>
> * subversion/libsvn_client/commit_util.c
> (add_lock_token): Replace a use of svn_wc__maybe_get_entry with
> use of svn_wc__node_get_*
>
> Patch by: Matthew Bentham <mjb67{_AT_}artvps.com>
> ]]]
> Index: subversion/libsvn_client/commit_util.c
> ===================================================================
> --- subversion/libsvn_client/commit_util.c (revision 909397)
> +++ subversion/libsvn_client/commit_util.c (working copy)
> @@ -195,19 +195,25 @@
> {
> struct add_lock_token_baton *altb = walk_baton;
> apr_pool_t *token_pool = apr_hash_pool_get(altb->lock_tokens);
> - const svn_wc_entry_t *entry;
> + const char* lock_token;
> + const char* url;
> +
> + SVN_ERR(svn_wc__node_get_lock_token(&lock_token, altb->wc_ctx,
> + local_abspath, scratch_pool, scratch_pool));

Indentation is a bit off. I'll fix and commit when the regression tests
finish.

-- 
Philip
Received on 2010-02-15 15:46:25 CET

This is an archived mail posted to the Subversion Dev mailing list.