postcommit

This script is called after a commit has completed. Its use has largely been superceded by the use of the postcommand script. The following formatting strings are available in addition to those in the common syntax:

%p

Directory relative to root of last directory committed.

By default the string %r/%p is used, which passes the last directory committed.

If multiple modules or repositories are committed the module in effect when this file is parsed is undetermined, so it is recommended that only the DEFAULT and ALL lines are used.