我可以告诉 MacHG 使用特定版本的 Mercurial 吗?

Can I tell MacHG to use a specific version of Mercurial?

出于插件原因,我想使用特定版本的 Mercurial。有什么方法可以告诉 MacHG 使用特定的 Mercurial 版本。我知道它自带,但我希望它基本上使用 'mine'。

是的,它记录在项目的 source code:

Replacing the Mercurial version is fairly trivial. Just replace the version of Mercurial in MacHg/LocalMercurial. Ie replace

MacHg/LocalMercurial/mercurial
MacHg/LocalMercurial/hgext
MacHg/LocalMercurial/mercurial-<version>-py2.6.egg-info

With the new version. Be careful to maintain the extensions in hgext which are not in the new version hgext. Eg histedit, collapse, etc. Moreover you will need to re-apply the patches specific to MacHg to the new version. To find all these differences you can simply compare MacHg's LocalMercurial with a checked out version of the Mercurial repository updated (to the same version but not revision as MacHg is currently using). Eg if MacHg was using version 1.9.2 of Mercurial + MacHg patches, then compare MacHg's LocalMercurial to version 1.9.2 of stock Mercurial to find all of the MacHg patches.

尽管这是可能的,但如果您尝试 运行 旧版本的 Mercurial,这很容易导致不兼容,这可能会导致难以诊断的问题。简单地安装您需要的版本附带的旧版本 MacHg 可能更安全。

如果您只是想更新 Mercurial MacHg 使用的版本,请考虑提交拉取请求,我相信他们会很感激。