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

Re: Svn copy does not work if destination file already exist

From: Blair Zajac <blair_at_orcaware.com>
Date: Fri, 23 Jan 2009 11:39:07 -0800

Vishal Gangwal wrote:
> 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 .

If you're doing this in a working copy, than the rm and copy can be done so it
ends up as a single commit. If you're doing this with URLs, then you can use
svnmucc to perform as many operations as you like to create a single revision.

http://subversion.tigris.org/tools_contrib.html#svnmucc_c

Blair

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-23 20:52:41 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.