You would probably have to do a shell script. The rule would look like:
- Code: Select all
If Date Modified is after Date Last Matched
Run shell script
svn commit $1
What this does is if the file was changed since the last time the rule was matched, do an svn commit. Now there are some caveats here. Depending on the program saving the file and the type of file, Hazel may either wake up immediately upon saving and run the rule or it might take a couple minutes before Hazel wakes up. In the latter case, if you do multiple saves in that period, it will only commit after the last one when it wakes up. I don't know if that is acceptable or not.
If you need more clarification on this, just let me know. I also suggest doing this on a test setup just to make sure that it works the way you think.