Is there a Subversion Checkout Hook or something similar?

前端 未结 3 2087
慢半拍i
慢半拍i 2020-11-30 11:41

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

相关标签:
3条回答
  • 2020-11-30 11:48

    You could do whatever you want using Apache as SVN server and (for example) mod_perl to hook into the requests. Maybe the log files already show the information you want.

    SVN via SSH should also be possible: Analyze the commands started by the SVN client and wrap them (for example, by renaming the original binary with ".orig" extension and putting a (shell) script into that place.

    0 讨论(0)
  • 2020-11-30 12:06

    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.

    0 讨论(0)
  • 2020-11-30 12:08

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

    0 讨论(0)
提交回复
热议问题