You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by iv...@apache.org on 2011/05/20 14:36:13 UTC

svn commit: r1125351 - /subversion/trunk/subversion/libsvn_ra_neon/fetch.c

Author: ivan
Date: Fri May 20 12:36:13 2011
New Revision: 1125351

URL: http://svn.apache.org/viewvc?rev=1125351&view=rev
Log:
* subversion/libsvn_ra_neon/fetch.c
  (svn_ra_neon__get_dir): Discover deadprop-count support only if caller 
   requested SVN_DIRENT_HAS_PROPS information.

Modified:
    subversion/trunk/subversion/libsvn_ra_neon/fetch.c

Modified: subversion/trunk/subversion/libsvn_ra_neon/fetch.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_neon/fetch.c?rev=1125351&r1=1125350&r2=1125351&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_neon/fetch.c (original)
+++ subversion/trunk/subversion/libsvn_ra_neon/fetch.c Fri May 20 12:36:13 2011
@@ -823,20 +823,23 @@ svn_error_t *svn_ra_neon__get_dir(svn_ra
     {
       ne_propname *which_props;
       svn_boolean_t supports_deadprop_count;
-      const svn_string_t *deadprop_count;
 
       /* For issue 2151: See if we are dealing with a server that
          understands the deadprop-count property.  If it doesn't, we'll
          need to do an allprop PROPFIND.  If it does, we'll execute a more
          targeted PROPFIND. */
-      SVN_ERR(svn_ra_neon__get_props_resource(&rsrc, ras, final_url, NULL,
-                                              deadprop_count_support_props,
-                                              pool));
-      deadprop_count = apr_hash_get(rsrc->propset,
-                                    SVN_RA_NEON__PROP_DEADPROP_COUNT,
-                                    APR_HASH_KEY_STRING);
-      supports_deadprop_count = (deadprop_count != NULL);
+      if (dirent_fields & SVN_DIRENT_HAS_PROPS)
+        {
+          const svn_string_t *deadprop_count;
 
+          SVN_ERR(svn_ra_neon__get_props_resource(&rsrc, ras, final_url, NULL,
+                                                  deadprop_count_support_props,
+                                                  pool));
+          deadprop_count = apr_hash_get(rsrc->propset,
+                                        SVN_RA_NEON__PROP_DEADPROP_COUNT,
+                                        APR_HASH_KEY_STRING);
+          supports_deadprop_count = (deadprop_count != NULL);
+        }
 
       /* if we didn't ask for the has_props field, we can get individual
          properties. */