SVN pre-commit hook for avoiding changes to tags subdirectories

前端 未结 11 715
陌清茗
陌清茗 2020-11-28 04:25

Is there anybody who has clear instructions on how to add a pre-commit hook that avoids changes to tags subdirectories?

I already searched the internet quite a bit.

11条回答
  •  误落风尘
    2020-11-28 05:06

    This anwser is a lot after date, but I discovered the --copy-info parameter for the svnlook changed command.

    The output of this command adds a '+' in the third column, so you know it is a copy. You can check for commits to the tags directory, and only allow commits with a '+' present.

    I've added some output in my blog post.

提交回复
热议问题