Announcement

Collapse
No announcement yet.

SVN bin path check through Pre-Hooks

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SVN bin path check through Pre-Hooks

    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!!

  • #2
    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/re...meral-txnprops

    Comment


    • #3
      Originally posted by philip View Post
      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 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.
      Last edited by katrina_cherr; 08-15-2013, 09:31 AM.

      Comment

      Working...
      X