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

Re: How to un-commit and fall back to a previous version

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-03-06 17:05:31 CET

On 3/6/07, James Oltmans <joltmans@bolosystems.com> wrote:
> -----Original Message-----
> From: Edward Harvey [mailto:eharvey@chilsemi.com]
> Sent: Monday, March 05, 2007 3:18 PM
> To: users@subversion.tigris.org
> Subject: How to un-commit and fall back to a previous version
> I am not talking about simply "revert" because a revert is when you
> haven't committed your changes.
> If somebody commits a change, and later wishes to take it back, what can
> they do?
> One ugly option is ... Suppose I want to un-commit version 3, and
> everybody should use version 2. Then I'll update my working copy to
> version 2, and commit it again to create version 4. But I'm just
> guessing there's something cleaner and more elegant to do here, right?
> Thanks...

If you check out version 2 you won't be able to commit it as version 4,
> because a clean checkout has no modifications and therefore no reason to
> be checked in. What you need to do is undo just the changes between
> version 2 and version 3 and then commit that as version 4:
> svn merge -r 3:2 <url> <working copy path>
> That will undo the changes between version 3 and 2, all you need to do
> after that is commit it.

I have a more detailed explanation of the same answer in a blog post:


Mark Phippard
Received on Tue Mar 6 17:05:57 2007

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.