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

Re: Is it possible to overwrite a file with a copy of something else in a single commit?

From: Aleksey Nogin <aleksey_at_nogin.org>
Date: 2005-11-08 00:46:06 CET

On 07.11.2005 15:27, Ben Collins-Sussman wrote:

> On 11/7/05, Aleksey Nogin <aleksey@nogin.org> wrote:
>
>>Currently, if I try to overwrite a file with a copy of something else, I
>>get the following error message:
>>
>>svn: 'foo' is scheduled for deletion; it must be committed before being
>>overwritten
>
>
> I don't understand how to reproduce what you're talking about, would
> you please give us a transcript which demonstrates the problem?

% svnadmin create /tmp/repo

% svn co file:///tmp/repo wc
Checked out revision 0.

% cd wc/

% touch a b

% svn add a b
A a
A b

% svn ci -m "rev 1"
Adding a
Adding b
Transmitting file data ..
Committed revision 1.

% svn rm b
D b

% svn cp a b
svn: 'b' is scheduled for deletion; it must be committed before being
overwritten

So to reiterate, is there some way to replace b with a copy of a w/o a
bogus intermediate commit? If not, is there an issue tracking this
limitation?

-- 
Aleksey Nogin
Home Page: http://nogin.org/
E-Mail: nogin@cs.caltech.edu (office), aleksey@nogin.org (personal)
Office: Moore 04, tel: (626) 395-2200
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 8 00:47:14 2005

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.