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

Re: Undo commit in history

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Sun, 10 Aug 2008 19:33:28 -0500

On Aug 9, 2008, at 11:45, Marc Whitlow wrote:

> I am new to Subversion so I was reading up on the 1.4 version. At
> the bottom of the history section http://svnbook.red-bean.com/en/
> 1.4/svn.tour.history.html in the information box you state:
>
> Many Subversion newcomers attempt to use the above svn update
> example to “undo” committed changes, but this won't work as you
> can't commit changes that you obtain from backdating a working copy
> if the changed files have newer revisions. See the section called
> “Resurrecting Deleted Items” for a description of how to “undo” a
> commit.
>
> I would suggest telling the reader what is the appropriate command
> or command sequence. So they go away with point “to undo a
> committed change you . . .” in addition to the “Resurrecting
> Deleted Items” link.

As Karl said, book feedback should be sent to the book list. But to
answer your questions, there are already parts in the book that
explain how to undo changes. Just search the book index for "undo"
and you will see that to undo changes that have not yet been
committed, you use "svn revert":

http://svnbook.red-bean.com/en/1.4/
svn.tour.cycle.html#svn.tour.cycle.revert

And to undo changes which have already been committed, you use "svn
merge":

http://svnbook.red-bean.com/en/1.4/
svn.branchmerge.commonuses.html#svn.branchmerge.commonuses.undo

---------------------------------------------------------------------
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-11 02:34:41 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.