Author: stefan2
Date: Thu Nov 27 21:09:04 2014
New Revision: 1642231
URL: http://svn.apache.org/r1642231
Log:
Make 'svn log --with-no-revprops' actually do less work.
* subversion/libsvn_repos/log.c
(fill_log_entry): If we explicitly don't want revprops,
don't fetch them from the FS layer.
Modified:
subversion/trunk/subversion/libsvn_repos/log.c
Modified: subversion/trunk/subversion/libsvn_repos/log.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/log.c?rev=1642231&r1=1642230&r2=1642231&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/log.c (original)
+++ subversion/trunk/subversion/libsvn_repos/log.c Thu Nov 27 21:09:04 2014
@@ -1070,6 +1070,7 @@ fill_log_entry(svn_log_entry_t *log_entr
{
apr_hash_t *r_props, *changed_paths = NULL;
svn_boolean_t get_revprops = TRUE, censor_revprops = FALSE;
+ svn_boolean_t want_revprops = !revprops || revprops->nelts;
/* Discover changed paths if the user requested them
or if we need to check that they are readable. */
@@ -1111,7 +1112,7 @@ fill_log_entry(svn_log_entry_t *log_entr
changed_paths = NULL;
}
- if (get_revprops)
+ if (get_revprops && want_revprops)
{
/* User is allowed to see at least some revprops. */
SVN_ERR(svn_fs_revision_proplist(&r_props, fs, rev, pool));