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

Re: svn commit: r952016 - in /subversion/trunk/subversion/libsvn_wc: deprecated.c update_editor.c wc-queries.sql wc_db.c wc_db.h

From: Greg Stein <gstein_at_gmail.com>
Date: Sun, 6 Jun 2010 19:55:14 -0400

On Sun, Jun 6, 2010 at 18:31, <rhuijben_at_apache.org> wrote:
>...
> +++ subversion/trunk/subversion/libsvn_wc/wc_db.c Sun Jun  6 22:31:37 2010
>...
> +svn_error_t *
> +svn_wc__db_is_wcroot(svn_boolean_t *is_root,
> +                     svn_wc__db_t *db,
> +                     const char *local_abspath,
> +                     apr_pool_t *scratch_pool)
> +{
> +  svn_wc__db_pdh_t *pdh;
> +  const char *local_relpath;
> +  svn_sqlite__stmt_t *stmt;
> +  svn_boolean_t got_row;
> +
> +  SVN_ERR_ASSERT(svn_dirent_is_absolute(local_abspath));
> +
> +  SVN_ERR(svn_wc__db_pdh_parse_local_abspath(&pdh, &local_relpath, db,
> +                              local_abspath, svn_sqlite__mode_readwrite,

mode_readonly

> +                              scratch_pool, scratch_pool));
> +  VERIFY_USABLE_PDH(pdh);
> +
> +  if (*local_relpath != '\0')
> +    {
> +      *is_root = FALSE; /* Node is a file, or has a parent directory within
> +                           the same wcroot */
> +      return SVN_NO_ERROR;
> +    }
> +
> +#ifndef SINGLE_DB
> +  if (!svn_dirent_is_root(local_abspath, strlen(local_abspath)))
> +    {
> +      svn_error_t *err = navigate_to_parent(&pdh, db, pdh,
> +                                            svn_sqlite__mode_readwrite,
> +                                            scratch_pool);

same.

>...

Cheers,
-g
Received on 2010-06-07 01:55:54 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.