Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的项目从 svn 切换到了 mercurial。我需要关闭/密封 svn 存储库,这样就没有人再错误地提交它了。我不想关闭 svn 服务器,因为还有其他项目在使用它。
我的 google-fu 让我失望了。我该怎么做呢?
添加一个预提交钩子./hooks/pre-commit(当然是chmod +x)
./hooks/pre-commit
#!/bin/sh echo "Use the mercurial repository for new code please" 1>&2 exit 1;