title: Tortoise SVN Post-Commit Hook Windows
body: <p>I'm working on a simple slack integration for SVN projects via a client side post-commit hook in Windows Tortoise SVN using curl to send JSON. I would like to post some basic information, ideally revision number and comment when a commit is made. I added a post-commit client side hook, that executes a postcommit.bat file that succeeds in sending my slack channel a message. What I can't get working is including the passed in variables from tortoise. According to tortoise a SVN client side hook post-commit will include the following argument PATH DEPTH MESSAGEFILE REVISION ERROR CWD <a href="https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-settings.html" rel="nofollow">https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-settings.html</a></p>
  
  <p>Here is my working code, that sends a static string (not including message/revision to my slack channel):</p>
  
  <pre><code>C:\p\curl -H "Content-Type: application/json" -X POST https://hooks.slack.com/services/MYSECRETSERVICE -d "{\"text\":\"Test message\"}"
  </code></pre>
  
  <p>I would like to do something like this, but the following code does not, it simply posts "RevMessage", or in other words the parameters are not properly passed:</p>
  
  <pre><code>C:\p\curl -H "Content-Type: application/json" -X POST https://hooks.slack.com/services/MYSECRETSERVICE -d "{\"text\":\"Rev%REVISION%Message%MESSAGE%\"}"
  </code></pre>