On 3/6/07, James Oltmans <firstname.lastname@example.org> wrote:
> -----Original Message-----
> From: Edward Harvey [mailto:email@example.com]
> Sent: Monday, March 05, 2007 3:18 PM
> To: firstname.lastname@example.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?
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:
Received on Tue Mar 6 17:05:57 2007