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

Svn copy does not work if destination file already exist

From: Vishal Gangwal <vishalgangwal_at_waterford.org>
Date: Fri, 23 Jan 2009 05:13:50 -0700

Hi
 
Svn copy does not work if destination file already exist . For example
if we have file trunk/a.txt and we use " svn copy trunk/a.txt tags/a.txt
" .
It will copy file trunk/a.txt into tags directory as a.txt .
 
Now we modify file trunk/a.txt and again we want to use " svn copy
trunk/a.txt tags/a.txt " , so that a.txt in tags directory is updated
copy of a.txt in trunk directory.
But svn gives following error :
svn: Failure opening '/tags/a.txt/a.txt'
svn: '/trunk/a.txt' is not a directory in filesystem '/repos/test/db'

So we are using " svn del tags/a.txt " and then " svn copy trunk/a.txt
tags/a.txt "
 
Is there any other way to achieve this ?
 
So that we don't have to delete the file and save one revision number .
And also we don't want repository history showing file deleted .
 
Thanks & Regards
Vishal Gangwal

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1044747

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com

----------------------------------------
The information contained in this electronic communications is
intended solely for the addressee. Access to this email by anyone
else is unauthorized by the sender. If you are not the intended
recipient, you are hereby notified that any disclosure, copying, or
distribution of the contents of this email transmission or the taking
or omission of any action in reliance thereon or pursuant thereto is
prohibited, and may be unlawful. If you received this email in error,
please notify the sender immediately of your receipt of this message
by email and destroy this communication, any attachments, and all
copies thereof. Your cooperation is greatly appreciated.
----------------------------------------
Received on 2009-01-23 17:03:46 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.