On Mar 28, 2009, at 13:38, B Smith-Mannschott wrote:
> On Sat, Mar 28, 2009 at 19:30, Kynn Jones wrote:
>> 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
>> 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?
Right, that will help you change the commit message after the fact.
So you could edit the log message to say "Accidental commit; reverted
But first, to actually revert the changes, you could do a reverse
merge, described here:
Once you commit that reverse merge, then you'll have the revision
number so that you can rewrite the log message as above.
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-28 23:54:26 CET