Results 1 to 2 of 2

Thread: SVN bin path check through Pre-Hooks

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Location
    India,Maharashtra
    Posts
    29

    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!!
    Thanks in advance

  2. #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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •