You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2011/04/22 20:44:41 UTC
svn commit: r1095981 - in /subversion/trunk/subversion/libsvn_wc: props.c
props.h
Author: hwright
Date: Fri Apr 22 18:44:41 2011
New Revision: 1095981
URL: http://svn.apache.org/viewvc?rev=1095981&view=rev
Log:
Make file-private a function which is only used in one file.
* subversion/libsvn_wc/props.c
(svn_wc__internal_propset): Rename to...
(do_propset): ...this.
(svn_wc_prop_set4): Update caller.
* subversion/libsvn_wc/props.h
(svn_wc__internal_propset): Remove.
Modified:
subversion/trunk/subversion/libsvn_wc/props.c
subversion/trunk/subversion/libsvn_wc/props.h
Modified: subversion/trunk/subversion/libsvn_wc/props.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/props.c?rev=1095981&r1=1095980&r2=1095981&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/props.c (original)
+++ subversion/trunk/subversion/libsvn_wc/props.c Fri Apr 22 18:44:41 2011
@@ -2002,16 +2002,16 @@ validate_eol_prop_against_file(const cha
return SVN_NO_ERROR;
}
-svn_error_t *
-svn_wc__internal_propset(svn_wc__db_t *db,
- const char *local_abspath,
- const char *name,
- const svn_string_t *value,
- svn_depth_t depth,
- svn_boolean_t skip_checks,
- svn_wc_notify_func2_t notify_func,
- void *notify_baton,
- apr_pool_t *scratch_pool)
+static svn_error_t *
+do_propset(svn_wc__db_t *db,
+ const char *local_abspath,
+ const char *name,
+ const svn_string_t *value,
+ svn_depth_t depth,
+ svn_boolean_t skip_checks,
+ svn_wc_notify_func2_t notify_func,
+ void *notify_baton,
+ apr_pool_t *scratch_pool)
{
apr_hash_t *prophash;
enum svn_prop_kind prop_kind = svn_property_kind(NULL, name);
@@ -2217,9 +2217,9 @@ svn_wc_prop_set4(svn_wc_context_t *wc_ct
void *notify_baton,
apr_pool_t *scratch_pool)
{
- return svn_error_return(svn_wc__internal_propset(wc_ctx->db, local_abspath,
- name, value, depth, skip_checks,
- notify_func, notify_baton, scratch_pool));
+ return svn_error_return(do_propset(wc_ctx->db, local_abspath, name, value,
+ depth, skip_checks, notify_func,
+ notify_baton, scratch_pool));
}
Modified: subversion/trunk/subversion/libsvn_wc/props.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/props.h?rev=1095981&r1=1095980&r2=1095981&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/props.h (original)
+++ subversion/trunk/subversion/libsvn_wc/props.h Fri Apr 22 18:44:41 2011
@@ -69,19 +69,6 @@ svn_wc__internal_propget(const svn_strin
apr_pool_t *scratch_pool);
-/* Internal function for setting a property. See svn_wc_prop_set4(). */
-svn_error_t *
-svn_wc__internal_propset(svn_wc__db_t *db,
- const char *local_abspath,
- const char *name,
- const svn_string_t *value,
- svn_depth_t depth,
- svn_boolean_t skip_checks,
- svn_wc_notify_func2_t notify_func,
- void *notify_baton,
- apr_pool_t *scratch_pool);
-
-
/* Given LOCAL_ABSPATH/DB and an array of PROPCHANGES based on
SERVER_BASEPROPS, calculate what changes should be applied to the working
copy.