【发布时间】:2014-09-30 14:42:54
【问题描述】:
在我的计算机上,我有一些 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 签出的所有存储库都不要使用这些钩子。我该如何设置它来做到这一点?
【问题讨论】:
标签: mercurial bitbucket mercurial-hook hgrc mercurial-extension