U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
SVN hooks
https://www.ultimatepp.org/forums/index.php?t=rview&goto=24636&th=4892#msg_24636
I just noticed, that the version(or revision if you want) string in uppsrc/ide/version.h is empty in svn. It is only filled later by the building scripts. Is there some reason why we don't use svn capabilities to keep there an up-to-date number? I'm sure this could be achieved quite simply using post-commit hook...
On related topic: It was discussed in the forum, that each commit should have a log message. While looking at the svn hooks possibilities, I discovered a script, that checks and refuses commits without log, returning error message to user.
Best regards,
Honza]]>dolik.rce2010-01-26T06:45:09-00:00Re: SVN hooks
https://www.ultimatepp.org/forums/index.php?t=rview&goto=24703&th=4892#msg_24703
Can you eventually find out the info how to do that?
Mirek
]]>mirek2010-01-27T23:23:44-00:00Re: SVN hooks
https://www.ultimatepp.org/forums/index.php?t=rview&goto=24706&th=4892#msg_24706
I'll let you know...]]>dolik.rce2010-01-28T06:01:19-00:00Re: SVN hooks
https://www.ultimatepp.org/forums/index.php?t=rview&goto=24707&th=4892#msg_24707
It looks that I was wrong about the versioning It seems that it is not possible to modify versioned files from hooks. I couldn't even find any workaround...
But at least the log checking script might be useful. Just copy the attached file into the hooks directory in svn repo and set it executable. It will check if log message includes any non-whitespace characters. If the check fails, error message is set to client. I did test if it works, but please make sure that it will work on your svn too. If there's any error, it would prevent anyone from committing.