在使用 Hg 进行了一段时间的小型项目之后,我今天验证了本地和中央 Mercurial 存储库。在本地,我没有错误或警告,并且“存储库使用 revlog 格式 1”。但是在中央存储库中,我得到了
repository uses revlog format 1
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
warning: `x' uses revlog format 0
warning: `xx' uses revlog format 0
warning: `xxx' uses revlog format 0
...
(总共 13 个此类警告)。我可以摆脱这些警告吗?
最佳答案
如果你用 --pull
克隆一个 repo它将被重新创建为您正在运行的 Mercurial 版本可以读/写的最新类型。没有 --pull
硬链接(hard link)用于旧数据文件。
所以在服务器上跑:
hg clone --pull existingrepo newrepo
mv existingrepo was-existingrepo
mv newrepo existingrepo
关于Mercurial:如何摆脱 "warning: xxxx uses revlog format 0"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7255666/