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

Re: Creating a 'latest release' directory in a repository

From: Alan Barrett <apb_at_cequrux.com>
Date: 2006-01-29 10:47:51 CET

On Sat, 28 Jan 2006, Avishay Orpaz wrote:
> The only way I can think of is deleting the old release from
> the destination directory, commiting, copying the new release and
> commiting again.

You can do the delete and copy in a single transaction, using
"mucc" or "rsvn". mucc can be found in the contrib/client-side
directory of the subversion distribution. rsvn can be found at
https://opensvn.csie.org/traccgi/rsvn/trac.cgi/wiki.

Here's an example using mucc:

REPO=file:///tmp/repo # or svn://wherever/repo or whatever
TOBRANCH=branches/latest
FROMBRANCH=branches/release-1.2
FROMREV=345
message="Replace ${TOBRANCH} with a copy of ${FROMBRANCH}
as of revision ${FROMREV}"
mucc -m "${message}" \
        rm ${REPO}/${TOBRANCH} \
        cp ${FROMREV} ${REPO}/${FROMBRANCH} ${REPO}/${TOBRANCH}

--apb (Alan Barrett)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jan 29 10:50:28 2006

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.