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

Re: WG: Subversion pop quiz

From: Walden Mathews <walden_at_eqwality.com>
Date: 2004-10-20 19:22:52 CEST

For a totally server-side solution, how about deleting the HEAD,
then doing an svn copy from rev N-1? Of course, this assumes you
have eliminated the chance of other intervening commits, but if
you're the admin that's easy.

Walden

----- Original Message -----
From: "Toby Johnson" <toby@etjohnson.us>
To: <users@subversion.tigris.org>
Sent: Wednesday, October 20, 2004 11:47 AM
Subject: Re: WG: Subversion pop quiz

| Ben Collins-Sussman wrote:
|
| >
| > On Oct 20, 2004, at 9:01 AM, Andrew Arnott wrote:
| >
| >> I just asked this question a few days ago. See the thread with
| >> subject "Reverse last commit". But here was the most useful answer I
| >> received:
| >>
| >> This should be executed on the server. No, there is not simpler way
| >> (that I know of):
| >>
| >
| > Sure there's a simpler way. If you commit the reverse-merge of
| > revision N, then revision N+1 (the new HEAD) is identical to revision
| > N-1. This is what chapter 4 describes. Much simpler than dumping and
| > reloading the whole repository!
|
| To clarify: what Arnold wanted to do was remove all traces of the commit
| from the repository, thus the dump/load cycle. If this doesn't concern
| you, you can simply take the "reverse merge" approach. Merges can't be
| done server-side, so you'd need to do this in your working copy (i.e.
| apply the reverse merge to your WC and then commit those changes).
|
| A simple "svn merge -r COMMITTED:PREV ." followed by a commit should do
| the trick, but read the section in chapter 4 and examine the diffs
| before you commit them to make sure you're getting what you want. When
| you commit, use a meaningful message like "reversing changes from r123".
|
| toby
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
| For additional commands, e-mail: users-help@subversion.tigris.org
|
|
| __________ NOD32 1.898 (20041020) Information __________
|
| This message was checked by NOD32 antivirus system.
| http://www.nod32.com
|
|

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 20 19: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.