【问题标题】:Mercurial Repo : hg verify issue : "first damaged changeset appears to be 3270"Mercurial Repo:hg 验证问题:“第一个损坏的变更集似乎是 3270”
【发布时间】:2020-12-16 20:33:36
【问题描述】:

在 Mercurial repo 上运行 Hg verify 命令会返回以下输出:

hg 验证

checking changesets
checking manifests
 manifest@3270: changeset refers to unknown revision c33e42cadbba
crosschecking files in changesets and manifests
checking files
 WebContent/WEB-INF/classes/labels.properties@3270: c7287124bd0a not in manifests
checked 5835 changesets with 100225 changes to 78258 files
2 integrity errors encountered!
(first damaged changeset appears to be 3270)

如何解决这个问题?

【问题讨论】:

标签: version-control migration mercurial corruption


【解决方案1】:

''' 使用 hg strip 3270 删除变更集。

https://www.mercurial-scm.org/wiki/StripExtension

选择要删除的变更集 > 右键单击​​ > 修改历史记录 > 剥离 ... > 按剥离按钮。

现在 hg verify 不会抱怨完整性问题了。

这也可以通过命令行来完成

hg strip --keep --force --verbose --nobackup 3270

'''

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-05-23
    • 2020-03-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-03
    相关资源
    最近更新 更多