3

我需要在 WinXP 32 位上使用 Mercurial。这些存储库是在不同的系统 (Win10) 上创建的,并且相对较新,因此它们需要 revlog-compression-zstd。不幸的是,这似乎在 WinXP 上不可用,即使是 Mercurial 5.9.3。每当我尝试在 repos 上运行一些 hg 命令时,我都会收到以下错误消息: repository requires features unknown to this Mercurial: revlog-compression-zstd

这是hg debuginstall(对不起,这是德语 Windows)的输出:

Y:\Litho_newRepo>hg debuginstall
checking encoding (cp1252)...
checking Python executable (C:\Programme\TortoiseHg\hg.exe)
checking Python implementation (CPython)
checking Python version (2.7.17)
Pr³fe Python lib (C:\Programme\TortoiseHg\lib\library.zip)...
checking Python security support (sni,tls1.0,tls1.1,tls1.2)
checking Rust extensions (missing)
checking Mercurial version (5.9.3)
checking Mercurial custom build ()
checking module policy (allow)
Pr³fe installierte Module (C:\Programme\TortoiseHg\lib\library.zip\mercurial)...

checking registered compression engines (bz2, bz2truncated, none, zlib, zstd)
checking available compression engines (bz2, bz2truncated, none, zlib)
checking available compression engines for wire protocol (zlib, bz2, none)
checking "re2" regexp engine (missing)
checking templates (C:\Programme\TortoiseHg\templates)...
checking default template (C:\Programme\TortoiseHg\templates\map-cmdline.default
)
checking commit editor... (notepad)
checking username (John Doe)
Keine Probleme gefunden

所以 zstd 已注册,但不可用。我将如何启用它?该文件mercurial.zstd.pyd存在于libMercurial 安装目录中。我什至尝试zstd.pyd从本地 Python 2.7 复制 a,但似乎没有被拾取。

我已经尝试降级 repo 以消除对 zstd 的需求,但它也不起作用。我这样做是通过添加

[format]
revlog-compression-zstd = no

到 hgrc 并hg debugupgraderepo --run随后运行,但它只是告诉我nothing to do

我会很感激任何建议。谢谢你。

4

0 回答 0