Author: ivan
Date: Fri Jan 11 16:27:41 2013
New Revision: 1432139
URL: http://svn.apache.org/viewvc?rev=1432139&view=rev
Log:
subversion/libsvn_ra_serf/update.c:
(make_update_reporter): Use bulk-mode update editor if server doesn't
support inlining properties in update report.
Modified:
subversion/trunk/subversion/libsvn_ra_serf/update.c
Modified: subversion/trunk/subversion/libsvn_ra_serf/update.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/update.c?rev=1432139&r1=1432138&r2=1432139&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/update.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/update.c Fri Jan 11 16:27:41 2013
@@ -3197,8 +3197,19 @@ make_update_reporter(svn_ra_session_t *r
}
else
{
- /* Pre-1.8 server didn't send the bulk_updates header. Do
- whatever is the default or what the user defined in the config. */
+ /* Pre-1.8 server didn't send the bulk_updates header. Check if server
+ supports inlining properties in update editor report. */
+ if (sess->supports_inline_props)
+ {
+ /* Inline props supported: do not use bulk updates. */
+ sess->bulk_updates = FALSE;
+ }
+ else
+ {
+ /* Inline props are noot supported: use bulk updates to avoid
+ * PROPFINDs for every added node. */
+ sess->bulk_updates = TRUE;
+ }
}
if (sess->bulk_updates)