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

Re: Problem in copy_versioned_files()?

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-11-30 01:52:18 CET

John Szakmeister wrote:
>
> SVN_ERR (svn_wc_adm_probe_open (&adm_access, NULL, from, FALSE,
> FALSE, pool));
> err = svn_wc_entry (&entry, from, adm_access, FALSE, subpool);
> SVN_ERR (svn_wc_adm_close (adm_access));
[...]
> err = svn_wc_entry (&entry, copy_from, adm_access, FALSE,
> subpool);
>
> Is this safe? [...]

If using adm_access after closing it is indeed an error, and it looks to me like it is, then can we make the software catch these errors automatically by putting some code into svn_wc_adm_close (and other ..._close functions for other resources) to invalidate the resource baton? This code need only be active in maintainer mode (debug mode).

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Nov 30 01:49:52 2003

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