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

Re: svn commit: r955721 - in /subversion/trunk/subversion: include/private/svn_wc_private.h libsvn_wc/node.c

From: Greg Stein <gstein_at_gmail.com>
Date: Fri, 18 Jun 2010 17:46:48 -0400

Isn't this what svn_wc_locked2() is for?

On Thu, Jun 17, 2010 at 16:10, <rhuijben_at_apache.org> wrote:
> Author: rhuijben
> Date: Thu Jun 17 20:10:36 2010
> New Revision: 955721
>
> URL: http://svn.apache.org/viewvc?rev=955721&view=rev
> Log:
> Add temporary api to obtain the working copy locked status from
> libsvn_client.
>
> * subversion/include/private/svn_wc_private.h
>  (svn_wc__temp_get_wclocked): New function.
>
> * subversion/libsvn_wc/node.c
>  (svn_wc__temp_get_wclocked): New function.
>
> Modified:
>    subversion/trunk/subversion/include/private/svn_wc_private.h
>    subversion/trunk/subversion/libsvn_wc/node.c
>
> Modified: subversion/trunk/subversion/include/private/svn_wc_private.h
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/private/svn_wc_private.h?rev=955721&r1=955720&r2=955721&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/include/private/svn_wc_private.h (original)
> +++ subversion/trunk/subversion/include/private/svn_wc_private.h Thu Jun 17 20:10:36 2010
> @@ -697,6 +697,14 @@ svn_wc__temp_get_keep_local(svn_boolean_
>                             const char *local_abspath,
>                             apr_pool_t *scratch_pool);
>
> +/* Set *LOCKED to true when a lock for LOCAL_ABSPATH exists */
> +svn_error_t *
> +svn_wc__temp_get_wclocked(svn_boolean_t *locked,
> +                          svn_wc_context_t *wc_ctx,
> +                          const char *local_abspath,
> +                          apr_pool_t *scratch_pool);
> +
> +
>  #ifdef __cplusplus
>  }
>  #endif /* __cplusplus */
>
> Modified: subversion/trunk/subversion/libsvn_wc/node.c
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/node.c?rev=955721&r1=955720&r2=955721&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/libsvn_wc/node.c (original)
> +++ subversion/trunk/subversion/libsvn_wc/node.c Thu Jun 17 20:10:36 2010
> @@ -1136,3 +1136,14 @@ svn_wc__temp_get_keep_local(svn_boolean_
>
>   return SVN_NO_ERROR;
>  }
> +
> +svn_error_t *
> +svn_wc__temp_get_wclocked(svn_boolean_t *locked,
> +                          svn_wc_context_t *wc_ctx,
> +                          const char *local_abspath,
> +                          apr_pool_t *scratch_pool)
> +{
> +  return svn_error_return(
> +              svn_wc__db_wclocked(locked, wc_ctx->db, local_abspath,
> +                                  scratch_pool));
> +}
>
>
>
Received on 2010-06-18 23:47:28 CEST

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