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

Re: Prevent accidental commits

From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: Mon, 16 Jun 2008 13:57:14 +0200

On 2008-06-12 07:11:57 +0530, Jeenu V wrote:
> I used to do it. I later abandoned this, ever since I started noticing
> an empty line after the last line in my commit log -- which I didn't
> want. I couldn't remove it by any means. It seemed like the SVN
> removes whatever follows, and including the line "-- This line and
> blah blah...."; but he CR/LF of the line above lingers.
>
> I think what I might do is to define a shell alias for svn, and do
> some sanitary checks.

You can also configure your editor to remove the "-- This line and..."
line and any whitespace before it automatically. If your editor cannot
do this, you can write a simple wrapper that would do it after executing
the editor, and modify your config file (or set up the SVN_EDITOR
environment variable) to execute the wrapper. (I already do something
like that for Mutt.)

You can have a hook that does sanity checks, but AFAIK, it cannot
modify the log message.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-16 13:59:26 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.