[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-09-07 15:56:31 CEST

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
Received on Tue Sep 7 15:59:49 2004

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