>
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447
-----Original Message-----
> From: Hyrum K. Wright [mailto:hyrum_wright_at_mail.utexas.edu]
> Sent: 23 January 2009 16:33
> To: Vishal Gangwal
> Cc: users_at_subversion.tigris.org
> Subject: Re: Svn copy does not work if destination file already exist
>
> 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 .
That's correct behaviour AFAIK. Want you want to do is merge your changes from trunk to tag. However, the tags are not supposed to be modified. Can you tell us why you want to do that.
Giulio
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1045079
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-23 18:28:53 CET