【问题标题】:How to add a custom tool/command to tortoisehg in linux?如何在 linux 中向 tortoisehg 添加自定义工具/命令?
【发布时间】:2013-10-15 05:58:51
【问题描述】:

我正在尝试从 tortiseHg 执行 shell 命令。我的最终目标是运行一个以{REV} 为参数的大型shell 命令。有谁知道这样做的方法吗?

我尝试在 tortiseHg 中使用自定义工具选项,但它不适合我。

无论我添加什么作为命令,它总是返回:

The command "my command and args" could not be executed.

"No such file or directory"

Please check that the command path is valid and that it is a valid application

如何重现:

  1. 在tortoiseHg (linux) 中,进入设置> 工具> 新工具,添加一个新命令。 例如。 触摸 /path/success.txt
  2. 将工具添加到列表
  3. 重启一下
  4. 点击工具。

【问题讨论】:

    标签: linux mercurial tortoisehg


    【解决方案1】:

    正如 lgriZdes 在他的回答中提到的,自定义工具似乎只接受 hg 命令。通过在 hg 中创建一个执行 shell 命令的别名并从自定义工具调用此别名来解决此问题。如果你们想要更详细的信息,请告诉我。

    【讨论】:

    【解决方案2】:

    在旧的史前版本的 tortoisehg 中,只有 hg 命令有效。这里说现在shell命令应该可以正常工作了How to add a custom tool/command to tortoisehg in linux?

    【讨论】:

    • 这是不正确的。尝试“notepad.exe”作为命令,你会看到一个记事本窗口打开。
    • 您可以/应该只编辑答案以更正它。
    • 各位,我不再使用tortoisehg,所以我可以测试一下
    • 我不会给出我没有测试过的答案。我应该怎么做?写下 也许 最近的答案/cmets 是有效的,而我的已经过时了?好的,我已经做到了
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-03-23
    • 1970-01-01
    • 2018-07-20
    • 1970-01-01
    • 1970-01-01
    • 2010-10-10
    • 1970-01-01
    相关资源
    最近更新 更多