Is there a Subversion Checkout Hook or something similar?

10,100

Solution 1

The following are all the supported hooks in Subversion 1.5, from the Version Control with Subversion book:

  • start-commit
  • pre-commit
  • post-commit
  • pre-revprop-change
  • post-revprop-change
  • pre-lock
  • post-lock
  • pre-unlock
  • post-unlock

There is no pre-checkout or pre-update hook like you describe.

Solution 2

If you are using TortoiseSVN, you have access to client-side hooks.

Share:
10,100
Robert Massaioli
Author by

Robert Massaioli

I have been programming for over 8 years in a variety of languages including: C C++ Java Haskell Ruby Perl Javascript And well versed in tools and markup languages such as: Bash / Zsh Shell Scripting Web Programming (CSS, HTML, Networking and Sysadmin Stuff) And a whole host of other knowledge gained over time. I like building tools that help people.

Updated on June 09, 2022

Comments

  • Robert Massaioli
    Robert Massaioli almost 2 years

    I'm using a subversion repository and I want to know whenever somebody asks my repository for a checkout; like a 'svn co' or an 'svn up'. Is there a hook or some other method that I can use so that a script is run, or email sent, whenever somebody requests information from my svn server? How can I achieve this without relying on apache logs?

    BTW it is a pretty simple repository just meant for Educational purposes.

    (If you need more information then just ask. Thanks in advance.)

  • Wim Coenen
    Wim Coenen about 15 years
    +1 good solution if you need to control and manage the client configurations anyway, e.g. for autoprops settings