MomokaChan / tortoisesvn

Automatically exported from code.google.com/p/tortoisesvn
0 stars 0 forks source link

project property to block commit messages #659

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
from the mailing list:
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=308665
4

I want to suggest one more enhancement that can help administrating 
repositories.
I am actively using templates for adding comments to revisions. This makes 
them more standartized and easier to maintain. One thing that I am still 
unable to do with templates is adding symbols that prevent commiting. For 
example something like fixed #[number] in this revision, where symbols '
'[' and ']' prevent commiting, because a user should replace string 
'[number]' with the exact ticket number. I have tried to use precommit hook 
and it wokrs excellent on commits, but the problem appears when trying to 
use it on branching. The reason for the problem is that branch is not yet 
ready and due to this external is not yet valid and this causes TSVN to say 
that the hook file is not found and abort branching. So, I suggest to add 
one more property(s) like tsvn:templateblockcommit, tsvn:templateblockbranch 
or any other name of your choice, which will contain symbols that block 
commits. The symbols may be just a string  or comma separated, but it will 
be a good idea to have an ability to include also a unicode symbols with '\' 
prefix, like '\8068' or any other format of your choice.

Original issue reported on code.google.com by tortoisesvn on 19 Aug 2014 at 7:50

GoogleCodeExporter commented 8 years ago
This would best be implemented as a regex that when it matches the commit 
message (i.e., regex_match returns true) then the commit is blocked.

Original comment by tortoisesvn on 19 Aug 2014 at 7:52

GoogleCodeExporter commented 8 years ago
Using the CheckCommit hook script that's implemented with issue #574 for this.
Which means that hook script has to be called from the branch/tag dialog as 
well, and maybe other dialogs where a commit can occur.

Original comment by tortoisesvn on 5 Dec 2014 at 5:51

GoogleCodeExporter commented 8 years ago

Original comment by tortoisesvn on 5 Dec 2014 at 6:18

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r26091.

Original comment by tortoisesvn on 5 Dec 2014 at 7:14