【发布时间】:2016-02-12 05:43:51
【问题描述】:
我有一个使用 Python 脚本的 pretxncommit 钩子。这个 Python 脚本本身在同一个 repo 中受版本控制。在我向脚本本身添加更改之前一切正常,这在尝试提交或合并此类更改时导致了一堆错误。
我该如何解决这个问题?我能想出的最佳解决方案是使用 subrepo,但我不太喜欢它。
错误示例:
Traceback (most recent call last):
File "hg", line 43, in <module>
File "mercurial\dispatch.pyc", line 30, in run
TypeError: unsupported operand type(s) for &: 'str' and 'int'
【问题讨论】:
-
什么样的错误?
标签: mercurial hook pre-commit-hook