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

Re: revert and undo revert

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Sat, 30 Aug 2008 17:19:05 -0500

On Aug 29, 2008, at 12:58 PM, Jorge Manuel Domingues Peneirol (Via
Directa) wrote:

> I have to give to a client a first version of my software and for
> that I need to revert some revisions. This I already did with the
> “rever to this revison” option in SVN.
> But now I need to put this revisions back in SVN. Is there any way
> I can do this in SVN … without doing another commit in the
> developers pc ?

Undoing revisions is accomplished with a reverse merge, which is
explained in the Book:


However, this may not be the best solution to your problem. What are
these revision you don't want to show the client? Are they new
incomplete features, which you would like to keep in the repository
and continue working on? It sounds like what you really should do
instead is to create a tag from a previous revision of your
repository, and give the client an export or working copy of that
tag, instead of the trunk.

For example, let us assume your repository is at revision 100 and
there are recent changes in trunk that you do not want to give your
client. You decide you want to give your client the trunk as it
appeared in revision 90. It would be best, then, to create a tag of
trunk at revision 90. If $REPO is your repository URL, then you could:

svn cp -r 90 $REPO/trunk $REPO/tags/client-release-1

Or you can name your tag anything else that makes sense to you. Then
you can check out or export client-release-1 from the tags directory
and give that to the client. And you can always refer back to this
tag to see what exactly you gave to the client.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-31 00:19:29 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.