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

replace dir

From: Helge Jensen <jensen_at_slog.dk>
Date: 2004-03-21 14:03:06 CET

In svn-0.37.0, the following idiom for replaceing one directory with
another worked:

   svn rm foo
   rm -rf foo
   svn copy .../.../other foo
   svn commit -m "replaced foo with other"

This does not work with SVN-1.0.1 (and r9111)

The reason seems to be that SVN no longer detects the delete of foo when
harvesting commits (in commit_util.c:harvest_committables) and also svn
status shows

   A foo

not

   R foo

as expected.

Bug# 1516 (http://subversion.tigris.org/issues/show_bug.cgi?id=1516)
seems to document this, but i _know_ it worked in 0.37 (using it every
day at work and home), and I really need the functionality (having
multiple projects sharing code via svn copy'ing stable versions into the
projects).

I've got the latest (right now 9111) svn checked out and compiled and
i'm trying to look at the harvest_commitables, function to find out
what's going on, and it seemingly only schedules an "add" in the commit.

Any hints, clues or directions on what may have brought on this change,
or where in particular to focus my interest are welcome.

I'm willing to use time to fix the issue and submit patches but i would
like a little bit of aid trying to understand the code, which seems a
little bit messy, probably because someone like myself, with limited
knowledge of the code-base sent some pathces :)

-- 
Helge
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 21 14:03:48 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.