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

Copy with externals, then commit fails

From: Ryno Changuion <ryno.changuion_at_za.thalesgroup.com>
Date: Wed, 26 Jan 2011 11:29:55 +0200

I tried to create a new branch of a trunk that had some svn:externals
definition.

In particular, it pointed to a file.

 

I.e.

/somewhere/a.txt_at_4 a.txt

 

I used

svn copy svn://server/trunk branch

And the output from that was the usual stuff including

E a.txt (indicating an externals file).

 

svn stat had the following output:

     +X a.txt

Of course, the plus means "with history".

 

After this, I could not do a commit. The commit failed with a message:

svn: File not found: revision 4, path '/trunk/a.txt'

 

My suspicion is that due to the fact that the file has history
associated

with it, the commit tries to commit a file that it shouldn't be
committing.

Besides, I didn't want to add a.txt to my branch, I still wanted it to
come

from the original externals definition. Is it a bug that svn copy adds

history info to an external file?

 

Anyway, I did manage to work around the problem by using

svn copy --ignore-externals svn://server/trunk branch

 

 

 
Received on 2011-01-26 10:41:52 CET

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.