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

Re: [Issue 1751] svn switch may corrupt working copy

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2004-03-09 23:54:21 CET

makl <makl@tigris.org> writes:

> After a little debugging I have found the following:
>
> In function 'drive' in reporter.c there is a call to
> 'b->editor->open_root'. This call sets the URL of the wc to
> 'file:///home/mk/test/repo/branch'.

Well spotted! Try this patch

Index: subversion/libsvn_wc/update_editor.c
===================================================================
--- subversion/libsvn_wc/update_editor.c (revision 8954)
+++ subversion/libsvn_wc/update_editor.c (working copy)
@@ -251,7 +251,7 @@
          another target). */
       if (! pb)
         {
- if (*eb->target) /* anchor is also target */
+ if (! *eb->target) /* anchor is also target */
             d->new_URL = apr_pstrdup (pool, eb->switch_url);
           else
             d->new_URL = svn_path_dirname (eb->switch_url, pool);

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 9 23:54:39 2004

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.