It sounds like you are trying to emulate CVS tags - AKA tags as
labels. Subversion doesn't support this currently. It has been
discussed many times on this list. I wouldn't expect that anyone
would seriously want to change the behavior of 'svn cp'.
On the other hand, many people have expressed a desire to have
"labels" as an addition to the current functionality.
-steve
On Jan 23, 2009, at 7:13 AM, 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 .
>
> Thanks & Regards
> Vishal Gangwal
>
> 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.
> ----------------------------------------
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1045084
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-23 18:04:43 CET