1
在我的计算机上,我有一些Mercurial提交挂钩在每次提交时运行,以确保我正确地分支并执行其他一些操作。但我只需要这些工作项目。针对特定回购来源禁用Mercurial钩子
以下是我的〜/ .hgrc文件中实现了钩:
[hooks]
# This hook will warn you if you make a commit directly to trunk.
pretxncommit.default_check=/virtualhosts/mercurial-hooks/default_check.sh
# This hook will warn you if you branch from something other than default.
pretxncommit.branch_check=/virtualhosts/mercurial-hooks/branch_check.sh
对于我的个人项目,我不希望使用相同的,讨厌的钩(被设置为全局)。我希望从bitbucket签出的所有回购协议不使用这些挂钩。我如何设置它来做到这一点?
工作,谢谢! – pthurmond 2014-09-30 19:17:28