【问题标题】:abort: pretxncommit.msg_header_must_conform hook exited with status 255中止:pretxncommit.msg_header_must_conform 钩子以状态 255 退出
【发布时间】:2014-04-29 14:44:45
【问题描述】:

从 mercurial 提交代码时出现以下错误:

调用钩子 pretxncommit.crlf: hgext.win32text.forbidcrlf running 钩子 pretxncommit.msg_header_must_conform: (hg log --template "{desc|firstline}" -r %HG_NODE% | egrep -qi "^添加标签|^删除 标签|^自动合并|^合并|^[maven-scm]|^cmets|^test case|^(tracker|issue) id: [0-9]{5,8} -") 事务中止!回滚 完成中止:pretxncommit.msg_header_must_conform 钩子退出 状态 255

我什至检查了目录结构(当前为 777)的权限,但仍然失败。这里可能出了什么问题?

【问题讨论】:

    标签: java mercurial


    【解决方案1】:

    你的 repo 上有钩子,可以防止提交不遵守特定约定的更改。

    第一个钩子似乎通过了,它显然禁止在行尾使用回车和换行符。

    第二个钩子似乎想要一个特定的提交消息,而那个钩子似乎失败了。请联系您的管理员以获取提交消息的正确格式。不过,这只是基于您的错误的推测......

    【讨论】:

      猜你喜欢
      • 2015-09-04
      • 2020-09-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多