[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: James Oltmans <joltmans_at_bolosystems.com>
Date: 2007-03-06 17:01:45 CET

-----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...

--------------------
Edward Harvey
Phone: 978-640-0011 x238
Cell: 603-283-6464

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.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 6 17:02:06 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.