名称

pre-revprop-change — 修订版本属性修改的通知。

描述

The pre-revprop-change hook is run immediately prior to the modification of a revision property when performed outside the scope of a normal commit. Unlike the other hooks, the default state of this one is to deny the proposed action. The hook must actually exist and return a zero exit value before a revision property modification can happen.

If the pre-revprop-change hook doesn't exist, isn't executable, or returns a nonzero exit value, no change to the property will be made, and anything printed to stderr is marshalled back to the client.

输入参数

传递给你钩子程序的命令行参数,按照顺序是:

  1. Repository path

  2. Revision whose property is about to be modified

  3. Authenticated username attempting the propchange

  4. Name of the property changed

  5. Change description: A (added), D (deleted), or M (modified)

此外,Subversion通过标准输入将属性值传递给钩子程序。

普通用户

Access control; change validation and control