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