configuration - Mercurial 别名 : "option --config may not be abbreviated" error

标签 configuration mercurial

我在我的 mercurial 配置中定义了以下别名。

[alias]
ci_s = ci --config phases.new-commit=secret

当我执行命令时 ci_s ,我得到了错误:

abort: option --config may not be abbreviated!



不确定是什么导致了错误。我的猜测是 new-commit 和 secret 之间的“=”符号。有什么办法可以使这个别名起作用吗?谢谢。

最佳答案

所以我从有用的 Mercurial IRC 那里得到了我的问题的解决方案。根据其中一位核心开发人员 mg 的说法,错误消息告诉我不能在别名中使用 --config。相反,我可以选择使用 shell 别名,ci_s = !$HG ci --config... ,这将使 Mercurial 产生一个新的子进程。由于提交过程很快,所以我没有看到产生新子进程的任何问题。

关于configuration - Mercurial 别名 : "option --config may not be abbreviated" error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11533577/

相关文章:

java - 在 MyBatis 3.0.6 中使用 configuration.xml 文件并提供 DataSource 设置

ssl - slapd : result. c:813: slap_send_ldap_result: 断言 `!((rs->sr_err)<0)' 失败

MySQL: my.ini 未读取

python - Windows Server 2008/IIS 7 上 Mercurial 1.9.2 的 HTTPS 给我 Errno 10054

command-line - Mercurial中是否有任何命令行来显示存储库树

Mercurial Subrepositories - 您是否必须在子存储库中提交然后在主存储库中提交?

c# - 自定义 app.config 部分 C#

mercurial - 使 Mercurial 存储库中的 .hgignore 可用于所有子存储库?

mercurial - TortoiseHG - 重命名文件夹 --> 新文件夹

java - 如何通过URL访问XML文件