[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1103177 - in /subversion/trunk/subversion/libsvn_wc: wc-queries.sql wc_db.c

From: Greg Stein <gstein_at_gmail.com>
Date: Sat, 14 May 2011 16:10:15 -0400

On Sat, May 14, 2011 at 14:19, <hwright_at_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.

>...
Received on 2011-05-14 22:10:48 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.