Ok, but is there a single command that does both operations so I don't have to do it in two steps? I'd really like to just do it in one step.
If not, I think it would make a great feature to add an option to the move/copy to be able to make it do it in one step (example: --remove-file-first, --overwrite, --force).
Ben
----- Original Message ----
From: Dave Lawrence <dlawrence_at_ad-holdings.co.uk>
To: BRM <bm_witness_at_yahoo.com>
Cc: users_at_subversion.tigris.org
Sent: Tuesday, December 23, 2008 2:38:35 AM
Subject: Re: SVN Copy Question...
BRM wrote:
>
> Is there a way to do the svn copy/move and overwrite an existing file in the same transaction? (i.e. instead of having to go delete the file first, then do the copy/move second, do it as a single commit, or have the copy/move comit the changes between the two files as the commit..).
>
Yes because you don't have to commit the deletion before you commit the
copy / move.
eg:
> C:\SVN\tests\test_wc2\dir1>svn del file1.c
> D file1.c
>
> C:\SVN\tests\test_wc2\dir1>svn mv file2.c file1.c
> A file1.c
> D file2.c
>
> C:\SVN\tests\test_wc2\dir1>svn status
> R + file1.c
> D file2.c
R + indicates file1 has been replaced. Note that after you commit it,
the "new" file1.c will have the history of file2.c
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=990417
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=992961
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-26 16:03:34 CET