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

RE: svn commit: r920839 - /subversion/trunk/subversion/libsvn_wc/update_editor.c

From: Bert Huijben <bert_at_qqmail.nl>
Date: Tue, 9 Mar 2010 13:32:24 +0100

> -----Original Message-----
> From: philip_at_apache.org [mailto:philip_at_apache.org]
> Sent: dinsdag 9 maart 2010 13:30
> To: commits_at_subversion.apache.org
> Subject: svn commit: r920839 -
> /subversion/trunk/subversion/libsvn_wc/update_editor.c
>
> Author: philip
> Date: Tue Mar 9 12:29:58 2010
> New Revision: 920839
>
> URL: http://svn.apache.org/viewvc?rev=920839&view=rev
> Log:
> * subversion/libsvn_wc/update_editor.c
> (cleanup_dir_baton): Use the proper wc context.
>
> Modified:
> subversion/trunk/subversion/libsvn_wc/update_editor.c
>
> Modified: subversion/trunk/subversion/libsvn_wc/update_editor.c
> URL:
> http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/upd
> ate_editor.c?rev=920839&r1=920838&r2=920839&view=diff
> ==========================================================
> ====================
> --- subversion/trunk/subversion/libsvn_wc/update_editor.c (original)
> +++ subversion/trunk/subversion/libsvn_wc/update_editor.c Tue Mar 9
> 12:29:58 2010
> @@ -539,11 +539,7 @@ cleanup_dir_baton(void *dir_baton)
> associated with a pool distinct from the edit pool and so were
> removed separately. */
> if (!err && !eb->close_edit_complete)
> - {
> - svn_wc_context_t fake_ctx;
> - fake_ctx.db = eb->db;
> - err = svn_wc__release_write_lock(&fake_ctx, db->local_abspath, pool);
> - }
> + err = svn_wc__release_write_lock(eb->wc_ctx, db->local_abspath,
> pool);
>
> if (err)
> {
>
Please use svn_wc__context_create_with_db() if you need to wrap a db. (But we prefer not to go back to wc_ctx wherever possible, by using internal functions that handle only with DBs)

        Bert
Received on 2010-03-09 13:32:56 CET

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.