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