On Sat, May 14, 2011 at 14:19, <hwri...@apache.org> wrote: >... > +++ subversion/trunk/subversion/libsvn_wc/wc_db.c Sat May 14 18:19:11 2011 >... > @@ -4944,11 +4952,105 @@ svn_wc__db_op_modified(svn_wc__db_t *db, > NOT_IMPLEMENTED(); > } > > +/* */ > +static svn_error_t * > +populate_targets_tree(svn_wc__db_wcroot_t *wcroot, > + const char *local_relpath, > + svn_depth_t depth, > + const apr_array_header_t *changelist_filter, > + apr_pool_t *scratch_pool) > +{ > + apr_hash_t *changelist_hash = NULL; > + svn_boolean_t have_row; > + svn_sqlite__stmt_t *stmt; > + const char *parent_relpath; > + > + parent_relpath = svn_relpath_dirname(local_relpath, scratch_pool); > + > + if (changelist_filter && changelist_filter->nelts) > + SVN_ERR(svn_hash_from_cstring_keys(&changelist_hash, changelist_filter, > + scratch_pool)); > + > + SVN_ERR(svn_sqlite__exec_statements(wcroot->sdb, > + STMT_CREATE_TARGETS_LIST)); > + > + switch (depth) > + { > + case svn_depth_empty: > + if (changelist_hash) > + { > + const char *changelist; > + > + SVN_ERR(svn_sqlite__get_statement(&stmt, wcroot->sdb, > + > STMT_SELECT_ACTUAL_CHANGELIST)); > + SVN_ERR(svn_sqlite__bindf(stmt, "is", wcroot->wc_id, > + local_relpath)); > + SVN_ERR(svn_sqlite__step(&have_row, stmt));
have_row is not checked. >...