SVN Commit Hooks / Subversion Tags on IgorExchange
| jjweimer | September 25, 2009 - 09:26 | ||
|---|---|---|---|
|
In email exchanges on the Igor listserver ... Hi all, I know this is fairly off-topic (it has more to do with Igor Exchange than Could somebody post the pre/post commit hooks they use in Subversion? I Thank you in advance, On IgorExchange, we use a pretty complicated set of pre and post commit hook scripts to do several things: 1. Reject the commit if the log message is empty. The hook scripts used on the site are quite complicated and written in If what you are looking for is to have things like the revision for general information about properties and how to set them with for specific information on that keyword. Note that you have to both One caveat with doing this--when Igor opens text files, such as |
|||


Joined: 2007-08-14
Location: United States
I have a beginning outline of how to set the configuration file for properties and to work all this using svnX on the MacOS in case anyone is interested. I can also post my SVN config that is used to apply the author, date, revision, ... keywords somewhere on IgorExchange. Perhaps Adam can suggest the best location for this. I also have an example header that I use to set all these properties in a procedure file as well as an example coding I use to return the revision number in a GetInfo type dialog. I'll post these under the Code Snippets.
Note, unlike TortiseSVN (IMO an amazing tool on the Windows system), no free GUI type tool exists on the Mac to set/enforce SVN properties on a file. I have had to use svnX to store a default configuration and then apply it to each new file. Tedious to say the least.
I have never run across the file locking issue. Perhaps either because I am not using the anchor keyword and/or because I only commit on files not in use or in modification by Igor and/or because I do not quite understand what the issue is when it does happen (SVN is still a learning curve process for me).
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH