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

Re: overwrite on copy.

From: Dave Lawrence <dlawrence_at_ad-holdings.co.uk>
Date: Fri, 04 Jan 2008 14:02:44 +0000

Jon Hardcastle wrote:
> Hello,
>
> I have 2 development tree's
>
> I want to copy/move an identically named file from
> location a to location b such that the history is
> kept.
>
> But a file with the same name exist in the location. I
> can only get it to tell me that file already exists.
> Can i not get it to ask me if i wish to overwrite that
> file? with the new file? or default to replace?
>
> Is this possible?

Yes. There are a number of ways, here is what I reckon is the smartest,
assuming you are using TSVN and you have a working copy of each tree handy.
1) Right-click the file you want to delete and select TSVN->delete
2) Right-drag the file you want to replace it with from one w/c to the
other (to where you have just deleted the file) - you will be presented
with a menu, select "SVN Copy File here"
3) Now right-click and do TSVN->Check-for-modifications, you will see
the file's status is "replaced(+)" - the + indicates that an SVN copy
was involved.
4) Commit the file

Notice only one commit involved. You could also use the repo-browser,
that would take two commits (one for the delete, one for the copy)

>
> Thanks.
>
> -----------------------
> N: Jon Hardcastle
> E: Jon_at_eHardcastle.com
> 'The writing is on the wall...'
> -----------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-01-04 15:03:09 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.