subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1104333 - /subversion/trunk/subversion/libsvn_wc/wc_db.c
Date Tue, 17 May 2011 15:27:43 GMT
Author: hwright
Date: Tue May 17 15:27:43 2011
New Revision: 1104333

URL: http://svn.apache.org/viewvc?rev=1104333&view=rev
Log:
Re-add filtering by propname in the streamy proplist fetcher.  I'm not
convinced this should be the permanent home of this functionality, but
it's what callers currently expect.

* subversion/libsvn_wc/wc_db.c
  (svn_wc__db_reaD_props_streamily): As above.

Modified:
    subversion/trunk/subversion/libsvn_wc/wc_db.c

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=1104333&r1=1104332&r2=1104333&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Tue May 17 15:27:43 2011
@@ -7690,8 +7690,25 @@ svn_wc__db_read_props_streamily(svn_wc__
           child_abspath = svn_dirent_join(wcroot->abspath,
                                           child_relpath, iterpool);
 
-          SVN_ERR(receiver_func(receiver_baton, child_abspath, props,
-                                iterpool));
+          /* Filter on the propname, if given one. */
+          if (propname)
+            {
+              svn_string_t *propval = apr_hash_get(props, propname,
+                                                   APR_HASH_KEY_STRING);
+
+              if (propval)
+                {
+                  props = apr_hash_make(iterpool);
+                  apr_hash_set(props, propname, APR_HASH_KEY_STRING,
+                               propval);
+                }
+              else
+                props = NULL;
+            }
+
+          if (props)
+            SVN_ERR(receiver_func(receiver_baton, child_abspath, props,
+                                  iterpool));
         }
 
       SVN_ERR(svn_sqlite__step(&have_row, stmt));



Mime
View raw message