Hi,
On 2 September 2010 03:43, Serge Tumanyan <tumanyan_at_mail.ru> wrote:
> Hello, All.
>
> One more suggestion:
> when you work in a project with verystrict rules, sometimes there is a need
> to provide the different templates with the choices for adding, committing,
> importing and so on. There is a standard notation for such a list of choices
> looking like: [choice1|choice2|choice3] - that means that you should select
> only either choice1 or choice 2 or choice3, but never a couple of them
> simultaniously.
>
> One more need is the non-necessary choices like:
> 'the problem was fixed by adding the [scripts: script1][ and ][functions:
> function1]'. In other words if the scripts were added we add the first
> template for the scripts, if the functions were added we take the third
> template for the functions and if both were added we take the second
> template in addition to first and third.
>
> In all these cases we have symbols that should be removed when committing
> because they have special meaning on the template level and should never be
> committed. In the examples provided these symbols are: '[', ']' and '|'. In
> addition to this non-committing of such a message is a good reminder that
> the template should be modified before committing.
>
> I suggest to add the TSVN property like TSVN:ProhibitiedCharacters that will
> carry a list of characters and even may be substrings that stops the commit,
> not allowing to perform it while these characters are present.
>
Why don't you create your own 'commit message validation' script and
add it as a pre-commit hook? That is the proper way to handle this,
ensuring that ALL commits are checked, not just the ones done through
TSVN.
--
Regards,
Jean-Marc
--
. ___
. @@ // \\ "De Chelonian Mobile"
. (_,\/ \_/ \ TortoiseSVN
. \ \_/_\_/> The coolest Interface to (Sub)Version Control
. /_/ \_\ http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2654408
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-09-02 07:36:37 CEST