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.
One more thing needed here is the ability to commit such a character if
there is a serious need for that. I suggest here to add an ability to type
this character with c-like Esc notation, for example if you still need to
commit a message with the [ and ] character then you will type something
like:
An example of using \[ and \] in the commit message. In this case TSVN
meeting the sequence of the character from TSVN:ProhibitiedCharacters with
preceding backslash character replaces it with the character following after
the \ character. To commit a backslash character itself the user could type
double backslash.
All this can make the life of administrators of SVN-based projects much
easier, allowing to create templates for the users that will describe the
rules more closely with no need for additional documentation...
Thank you.
Serge.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2654363
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-09-02 03:45:39 CEST