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

[PATCH] svn_wc_relocate3() on deleted target.

From: Rui, Guo <timmyguo_at_mail.ustc.edu.cn>
Date: Thu, 17 Jul 2008 01:39:54 +0800

I present this patch to fix a small problem, demonstrated in the following
command sequence:

svn co http://server/greek_tree wc
cd wc/A
svn rm D
svn ci D -m 'rm D'
svn sw --relocate from to D

These results in exception:
subversion/libsvn_wc/lock.c:997: (apr_err=155005)
svn: Directory 'D/C' is missing

[[[

* subversion/libsvn_wc/relocate.c
  (svn_wc_relocate3): Relocate deleted entry as a single entry.

]]]

I'm not sure how to deal with absent entry in this situation. But they usually
appears together in the testing condition. And when testing against
entry->deleted, somethings the svn_wc_schedule_replace is also checked. I saw
some of this in the code, but not always. This is suspicious in my mind.
Should I also check svn_wc_schedule_replace here?

Rui

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org

Received on 2008-07-16 19:40:12 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.