Concerning Re: Best Practice: SVN Copy / Move
Stefan Sperling wrote on 22 Jul 2008, 13:13, at least in part:
> On Tue, Jul 22, 2008 at 11:45:51AM +0200, Jan Hendrik wrote:
> I don't understand what you mean here.
>
> Branches can (and should) be created by doing a repo-to-repo copy,
> like so:
>
> svn cp http://svn.example.com/repos/svn/trunk \
> http://svn.example.com/repos/svn/branches/mynewbranch
>
> Then you just get a working copy of branches/mynewbranch and
> start editing.
>
> Or have I misunderstood your question?
No. Obviously I read too much about copying and almost all was
related to branches one way or the other. (I have given up on
branching long ago as switching would practically always result in
a complete checkout - *every* file would be "updated" to
branch/trunk, had something to do with the EOL property IIRC.
Instead I checkout a second working copy, only committing when
everything is done.)
> > -- Should this go similarily for svn move? Or does the --force
> > switch I have to use to move a modified file just has the purpose of
> > a security layer (modifications may have been intended for the
> > current, not a new place)?
>
> The behaviour you are describing seems to be specific to 1.4.
> Files carrying local modifications can be moved without --force
> in 1.5.0:
Haven't updated yet, TortoiseSVN never complains either, but SVN
1.4.6 not:
svn: Use --force to override this restriction
svn: Move will not be attempted unless forced
svn: 'testwc1/newfoo.txt' has local modifications
> You can modify files which have been "svn copied/moved" as much
> as you want, the modifications will just add up to the fact that
> you've copied/moved the files.
Thanks, Stefan. It is what I did since long and didn't experience
any issues (except for the necessity of the --force switch), but after
reading a lot from quite a number of sources (w/o copy/move
originally on my mind) I had become uncertain about it and
possible implications.
Jan Hendrik
---------------------------------------
Freedom quote:
If some among you fear taking a stand
because you are afraid of reprisals
from customers, clients, or even government,
recognize that you are just feeding the crocodile
hoping he'll eat you last.
-- Ronald Reagan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-22 21:41:43 CEST