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

RE: svn commit: r981479 - /subversion/trunk/subversion/libsvn_wc/adm_files.c

From: Bert Huijben <bert_at_qqmail.nl>
Date: Mon, 2 Aug 2010 14:22:26 +0200

> -----Original Message-----
> From: philip_at_apache.org [mailto:philip_at_apache.org]
> Sent: maandag 2 augustus 2010 14:19
> To: commits_at_subversion.apache.org
> Subject: svn commit: r981479 -
> /subversion/trunk/subversion/libsvn_wc/adm_files.c
>
> Author: philip
> Date: Mon Aug 2 12:19:12 2010
> New Revision: 981479
>
> URL: http://svn.apache.org/viewvc?rev=981479&view=rev
> Log:
> * subversion/libsvn_wc/adm_files.c
> (svn_wc__internal_ensure_adm): Scan if the repository information is
> not
> immediately available.
>
> Suggested by: rhuijben
>
> Modified:
> subversion/trunk/subversion/libsvn_wc/adm_files.c
>
> Modified: subversion/trunk/subversion/libsvn_wc/adm_files.c
> URL:
> http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/adm_
> files.c?rev=981479&r1=981478&r2=981479&view=diff
> =======================================================================
> =======
> --- subversion/trunk/subversion/libsvn_wc/adm_files.c (original)
> +++ subversion/trunk/subversion/libsvn_wc/adm_files.c Mon Aug 2
> 12:19:12 2010
> @@ -648,6 +648,24 @@ svn_wc__internal_ensure_adm(svn_wc__db_t
> "revision %ld in '%s'"),
> revision, db_revision, local_abspath);
>
> + if (!db_repos_root_url)
> + {
> + if (status == svn_wc__db_status_added)
> + SVN_ERR(svn_wc__db_scan_addition(NULL, NULL,
> + &db_repos_relpath,
> + &db_repos_root_url,
> + &db_repos_uuid,
> + NULL, NULL, NULL, NULL,
> + db, local_abspath,
> + scratch_pool,
> scratch_pool));
> + else
> + SVN_ERR(svn_wc__db_scan_base_repos(&db_repos_relpath,
> + &db_repos_root_url,
> + &db_repos_uuid,
> + db, local_abspath,
> + scratch_pool,
> scratch_pool));

What about a deleted child of a copy operation?

That is why I suggested that || !have_base on the first case. (I'm not 100% sure if that is enough to handle all 4th tree cases though as BASE_NODE might be switched below the delete)

        Bert
Received on 2010-08-02 14:23:11 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.