SVN pre-commit hook to ensure all files referenced in .csproj are versioned?

前端 未结 2 2010
南旧
南旧 2021-02-10 03:11

Occasionally we commit a C# project file to SVN that references files we forgot to add to SVN. Are there any pre-commit hook scripts out there that parse the .csproj file and re

2条回答
  •  广开言路
    2021-02-10 03:54

    If you are using a windows server, you can have a look at Subversion Notify for Windows -http://sourceforge.net/projects/svn-notify/

    I use it to do a simple check on the commit message, to ensure users confirm with our in house rules. I have not gone into any of the other pre-commit uses, but it might be worth a shot!

    I Quote from the Manual:

    PRE-COMMIT CHECKS

     Ensure the integrity of your repository by enforcing commit message standards

     Restrict the types of files that can be committed (eliminate accidental commits of temporary or developer specific configuration files)

     Enforce file type checks - files that can be committed, but require a special commit tag to make sure it's being committed as per your rules

     Check against your task tracking/ bug tracking system to ensure it's a valid tracking item and your standards are enforced (no commits against closed bugs for example)

提交回复
热议问题