I was looking for a solution to adding comments and this works lovely. I don't suppose anyone would know if it is possible to automate the process of adding this .bat when a new repository is created would they?
I think there's a bug in this otherwise very helpful batch file.
The test to make sure that the new svn:log message is not empty does not appear to work. It tests the last parameter on the command line. But the log message is not passed to the batch file as a parameter. It is passed via STDIN. This is documented in the pre-revprop-change template that comes with Subversion (version 1.6.3 (r38063). I'm running XP Pro SP 2 on both my PC and the Subversion repository PC.
Unfortunately, I have not been able to find a way to test whether STDIN is empty in this batch file. Does anyone else know how to do this?
Comments 31
Reply
Thanks once again, it was really helpful
Reply
Reply
I don't suppose anyone would know if it is possible to automate the process of adding this .bat when a new repository is created would they?
Reply
The test to make sure that the new svn:log message is not empty does not appear to work. It tests the last parameter on the command line. But the log message is not passed to the batch file as a parameter. It is passed via STDIN. This is documented in the pre-revprop-change template that comes with Subversion (version 1.6.3 (r38063). I'm running XP Pro SP 2 on both my PC and the Subversion repository PC.
Unfortunately, I have not been able to find a way to test whether STDIN is empty in this batch file. Does anyone else know how to do this?
Reply
Leave a comment