Author: pburba
Date: Wed Apr 11 02:34:04 2012
New Revision: 1312075
URL: http://svn.apache.org/viewvc?rev=1312075&view=rev
Log:
On the inheritable-props branch: Add a server-side log function for
get-inherited-props action.
* subversion/include/private/svn_log.h
(svn_log__get_inherited_props): New.
* subversion/libsvn_subr/log.c
(svn_log__get_inherited_props): New.
Modified:
subversion/branches/inheritable-props/subversion/include/private/svn_log.h
subversion/branches/inheritable-props/subversion/libsvn_subr/log.c
Modified:
subversion/branches/inheritable-props/subversion/include/private/svn_log.h
URL:
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/include/private/svn_log.h?rev=1312075&r1=1312074&r2=1312075&view=diff
==============================================================================
--- subversion/branches/inheritable-props/subversion/include/private/svn_log.h
(original)
+++ subversion/branches/inheritable-props/subversion/include/private/svn_log.h
Wed Apr 11 02:34:04 2012
@@ -244,6 +244,15 @@ svn_log__unlock_one_path(const char *pat
const char *
svn_log__replay(const char *path, svn_revnum_t rev, apr_pool_t *pool);
+/**
+ * Return a log string for a get-inherited-props action.
+ *
+ * @since New in 1.8.
+ */
+const char *
+svn_log__get_inherited_props(const char *path,
+ svn_revnum_t rev,
+ apr_pool_t *pool);
#ifdef __cplusplus
}
#endif /* __cplusplus */
Modified: subversion/branches/inheritable-props/subversion/libsvn_subr/log.c
URL:
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_subr/log.c?rev=1312075&r1=1312074&r2=1312075&view=diff
==============================================================================
--- subversion/branches/inheritable-props/subversion/libsvn_subr/log.c
(original)
+++ subversion/branches/inheritable-props/subversion/libsvn_subr/log.c Wed Apr
11 02:34:04 2012
@@ -380,3 +380,17 @@ svn_log__replay(const char *path, svn_re
log_path = "/";
return apr_psprintf(pool, "replay %s r%ld", log_path, rev);
}
+
+const char *
+svn_log__get_inherited_props(const char *path,
+ svn_revnum_t rev,
+ apr_pool_t *pool)
+{
+ const char *log_path;
+
+ if (path && path[0] != '\0')
+ log_path = svn_path_uri_encode(path, pool);
+ else
+ log_path = "/";
+ return apr_psprintf(pool, "get-inherited-props %s r%ld", log_path, rev);
+}