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

Re: "Move" a tag/branch forward

From: Michael Mühlebach <michael_at_anduin.ch>
Date: 2004-09-07 16:22:18 CEST

Sorry missed my reply-to-all button :-(

Two revisions are bad because one of them has no purpose. It is not that
bad but I try to avoid revisions without a purpose. Of couse the effort
to avoid this unelegancy is way too much but I hoped for a nice solution
someone maybe have :-)

Is something like I want planned for the future?

Ben Collins-Sussman wrote:

>Please don't reply to me personally. Re-sending to users@
>
>On Tue, 2004-09-07 at 08:02, Michael Mühlebach wrote:
>
>
>>Ok I did not explain so clear what my purpose is:
>>
>>If I have a repository liek this:
>>-Project
>> |-Trunk
>> |-Branches
>> |-Tags
>> |-NewestSnapshot
>>
>>I would like to have a cronjob which moves the current development state
>>(trunk) into the Tag "NewestSnapshot".
>>A copy does not work because after the first copy the Tag already exists.
>>A merge is not that good because the script would need a wc. (this means
>>a checkout&delete each time or a persistent wc which needs too much disk
>>space)
>>The only way to "overwrite" an existing tag without a local workingcopy
>>is to delete and copy. But that would be two revisions and so also
>>unusable.....
>>
>>So what I need is a merge which operate directly in the repository or a
>>copy which allows overwriting. Do such things exist or are in development?
>>
>>
>
>No, there's no way to do a 'overwriting copy' with the svn commandline
>client. You are correct: the best way to do it is 'svn rm URL-newest;
>svn cp URL-trunk URL-newest'. Yes, that's two revisions. Does it
>matter?
>
>You could write a program (in C, python, perl, whatever) that uses the
>SVN API to do the delete and copy in a single commit transaction. It
>wouldn't be very hard. But again, is it worth it?
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 7 16:23:10 2004

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

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