Use the commit message in a CVS pre-commit hook

后端 未结 4 2098
梦毁少年i
梦毁少年i 2021-01-13 04:34

Is it possible to use the commit message in a pre-commit hook in CVS? The CVS server is running remotely, and I access it using pserver.

Ideally, I want

4条回答
  •  爱一瞬间的悲伤
    2021-01-13 05:17

    You can use the verifymsg file in the CVSROOT directory. You can configure it to call a script which can verify the contents of the checkin comment. You can reject the commit by returning non-zero.

    The default verifymsg file contains more details.

提交回复
热议问题