【问题标题】:How to enable Mercurial topics (is it a "live" feature yet)?如何启用 Mercurial 主题(它是否是“实时”功能)?
【发布时间】:2021-05-08 19:37:29
【问题描述】:

按照https://www.mercurial-scm.org/doc/evolution/tutorials/topic-tutorial.html 的教程,我将以下内容添加到我的 mercurial.ini 文件中:

[extensions]
  ...
evolve =

[experimental]
evolution = all

是的,当我转到命令行并尝试时:

# hg topic
hg: unknown command 'topic'
(did you mean pick?)

# hg topics
hg: unknown command 'topics'
(use 'hg help' for a list of commands)

这就是我所得到的。

(不过,hg evolve 确实有效。)

我已经搜索过,但找不到任何其他关于如何启用它的文档,或者它可能还没有在常规版本中。但是从这里和其他地方的其他帖子来看,似乎人们正在使用它。虽然https://www.mercurial-scm.org/wiki/UsingExtensions中没有列出。

我需要做什么才能启用它?


我的hg版本是最新的:

# hg --version
Mercurial Distributed SCM (version 5.6.1)

【问题讨论】:

    标签: mercurial


    【解决方案1】:

    教程不正确(过时了?)

    您必须将以下内容添加到 Mercurial 配置文件中:

    [extensions]
    evolve =
    topic =
    

    我最终在https://heptapod.net/pages/quick-start-guide.html 发现了这个。

    【讨论】:

      【解决方案2】:

      我需要提供路径以使其在我的系统上运行:

      [extensions]
      evolve = C:\Program Files\Python39\Lib\site-packages\hgext3rd\evolve
      topic = C:\Program Files\Python39\Lib\site-packages\hgext3rd\topic
      

      【讨论】:

      • 我从来不需要为 HG 指定这样的路径。您的 HG 安装有什么不寻常的或定制的吗?
      猜你喜欢
      • 1970-01-01
      • 2011-09-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-20
      • 2018-05-23
      • 2019-06-10
      • 2017-06-22
      相关资源
      最近更新 更多