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

Re: Rolling back some components of a tag

From: Ryan Schmidt <subversion-2010b_at_ryandesign.com>
Date: Thu, 19 Aug 2010 11:57:59 -0500

On Aug 19, 2010, at 10:49, David Aldrich wrote:

> I have now read the cherrypicking section. I think the point to note is that merge is to do with changes, e.g. merge in the changes made in r1823. I was looking to bring a specific version of a file. So, with merge, I would need to work out which range of changes to apply.

You can do that. To replace myfile.txt in the tag mytag with the older revision 123, you could do:

svn rm $URL/tag/mytag/myfile.txt
svn cp $URL/trunk/myfile.txt_at_123 $URL/tag/mytag

Or instead of using URLs you could work in a working copy of the tag, then commit the tag; this is probably better so you can test your changes in the tag first before committing everything:

svn co $URL/tag/mytag
cd mytag
svn rm myfile.txt
svn cp $URL/trunk/myfile.txt_at_123 .
svn ci
Received on 2010-08-19 18:58:43 CEST

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.