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

Re: Is there a replace or copy with replace command

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-09-11 14:44:55 CEST

"Jojakim Stahl" <JStahl@demig.de> writes:

> I want to replace a item in the repos with another one. That ist performing
> a delete followed by a copy in one transaction, all directly within the
> repos.

'svn cp' works the same way as unix cp: it doesn't overwrite
directories. It creates a new directory within an existing one.

It's certainly easy to do what you want in *two* commits: just delete
the first directory, then copy the 1st directory to the same location.

But I thought maybe I could do it in a single transaction, using the
'replace' action in the working copy. I ran these commands:

$ svn rm dir2
$ rm -rf dir2
$ svn cp dir1 dir2

...at this point, 'svn st' shows 'A + dir2', and the entry claims
that dir2 is 'schedule=replace' with copy-history.

But when I try to commit the replacement, I get an out-of-date error
on dir2. I'm not sure why.

Philip, any ideas? Maybe this is a bug?

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 11 14:45:54 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.