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

Re: replace dir

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2004-03-21 18:00:51 CET

Helge Jensen <jensen@slog.dk> writes:

> 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)

I just built 0.37 and it doesn't appear to work, as far as I am aware
it has never worked.

$ svn rm wc/zig
D wc/zig
$ rm -rf wc/zig
$ svn cp wc/zag wc/zig
A wc/zig
$ svn ci wc
Adding wc/zig
svn: Commit failed (details follow):
svn: Out of date: 'zig' in transaction '2'
svn: Your commit message was left in a temporary file:
svn: '/home/pm/sw/subversion/obj/wc/svn-commit.tmp'
$ svn --version | head 1
svn, version 0.37.0 (dev build)

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 21 18:01:06 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.