SVN bin path check through Pre-Hooks

prafulla_s
prafulla_s
Hi,    We are using SVN version 1.6.5, configured under Linux platform on RHEL5, and will be moving to start using SVN 1.7.* version.    We wanted to check which SVN version is set at user's client side environment, and if its older SVN version then we want to throw message saying "Your environment is set to older SVN version and point SVN version bin to latest version". After pointing to latest SVN bin path user should be able to execute SVN command else it should keep on throwing this message.    We are trying to achieve this through SVN's built hooks, can anyone let me know how this can be achieved through hook? With some bash script support calling through any pre-hooks file?    Appreciate your help in this.    Thanks!!

Last updated

philip
philip
You cannot use hooks for this. Hooks run on the server and they do not know what user environment was used to make the commit. The start-commit does get the client capabilities but these are the same for 1.5, 1.6 and 1.7.    In future, Subversion 1.8 will allow a 1.8 server to detect 1.8 clients via http://subversion.apache.org/docs/release-notes/1.8.html#ephemeral-txnprops
katrina_cherr
katrina_cherr
philip;131139You cannot use hooks for this. Hooks run on the server and they do not know what user environment was used to make the commit. The start-commit does get the client capabilities but these are the same for 1.5, 1.6 and 1.7. In future, Subversion 1.8 will allow a 1.8 server to detect 1.8 clients via subversion.apache.org/docs/release-notes/1.8.html#ephemeral-txnprops
 Thanks for your info. It's something that I also have been interested in as a long-term user of SVN.

1-3 of 3

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.