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

Re: Using start_commit_hook to autocreate logtemplate

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Thu, 24 Apr 2008 10:36:44 +0100

2008/4/24 Carsten Johnsen <carsten.johnsen_at_polycom.com>:
> Hi devs...
>
> I'm in the process of creating a script that will autocreate the
> logtemplate, depending on the files that has been modified.
>
> I was hoping that one of the parameters of the hook was a list of
> modified files, but I can see why this would not be very easy for TSVN
> to handle, so I'm just using "svn status" from the script instead.
>
> My real problem is the logminsize.
> Since my script will deliver a MESSAGEFILE with a length from 0 to 100
> chars I would have to set logminsize to more than 100 to have any
> effect.
>
> Is there any way I could pass a logminsize to the commit-dialog, or
> perhaps the commit-dialog could automatically add the length of
> MESSAGEFILE to logminsize when evaluating the log length.
>
> Just a thought...
>
> Keep up the good work.

Something similar was discussed recently.

http://svn.haxx.se/tsvn/archive-2008-02/0153.shtml

The problem with setting a logminsize based on the template size is
that in some cases (not in yours) the template will consist of
boilerplate which requires the irrelevant sections to be deleted, so
the final log message size may actually be smaller than the template.

One idea which occurs to me is that if the logminsize property is set
to 0, simply require that some change is made to the message. It's not
perfect, but it might help.

Simon

-- 
: ___
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-04-24 11:36:59 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.