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

How to undo a commit?

From: Kynn Jones <kynnjo_at_gmail.com>
Date: Sat, 28 Mar 2009 14:30:51 -0400

By mistake, I ran the following command while in the wrong directory:
svn commit -m 'a lengthy description string'

This was a big mistake: The directory in question was not even part of the
project that I thought I was working with! Hence, the lengthy message that
I passed as the argument to the -m option is wholly inappropriate, and in
fact misleading. (In addition, a couple of files got committed prematurely
to the repository, but this is the lesser problem.)

Is there a straightforward way to undo this mistake, and delete the
incorrect message?

I assume the answer is no, since Subversion is designed to "keep
everything". In this case, what's the best approximation to a full delete
of this incorrect message?

TIA!

Kynn

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1459354

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-28 19:31:37 CET

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.