Mercurial 存储库损坏 - 无法更新

发布于 2024-08-28 03:37:01 字数 3671 浏览 5 评论 0原文

我认为我设法损坏了 Mercurial 存储库之一,有办法恢复损坏吗?当我尝试将存储库更新到我的默认分支时收到的消息是:

PS C:\wco\projects\ims\code> hg up -C default
abort: data/Trunk/application/models/priority_model.php.i@83dbdfb60981: no match found!

当我运行 hg verify 时,我收到以下报告:

PS C:\wco\projects\ims\code> hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
 data/.buildpath.i@0: missing revlog!
 0: empty or missing .buildpath
 .buildpath@0: daf15acb5273 in manifests not found
 data/.project.i@0: missing revlog!
 0: empty or missing .project
 .project@0: e8b25997d6d1 in manifests not found
 Rawlings IMS/index.html@3: empty or missing copy source revlog index.html:b8b2b36a6eea
 Rawlings IMS/index.php@3: empty or missing copy source revlog index.php:a5f76bf232e9
 Rawlings IMS/index_backup.php@3: empty or missing copy source revlog index_backup.php:a5f76bf232e9
 Rawlings IMS/index_this_hold.html@3: empty or missing copy source revlog index_this_hold.html:b8b2b36a6eea
 Rawlings IMS/testera.php@3: empty or missing copy source revlog testera.php:6e9e3666c1bc
 Trunk/application/models/priority_model.php@32: 83dbdfb60981 in manifests not found
 data/index.html.i@0: missing revlog!
 0: empty or missing index.html
 index.html@0: b8b2b36a6eea in manifests not found
 data/index.php.i@0: missing revlog!
 0: empty or missing index.php
 index.php@0: a5f76bf232e9 in manifests not found
 data/index_backup.php.i@0: missing revlog!
 0: empty or missing index_backup.php
 index_backup.php@0: a5f76bf232e9 in manifests not found
 data/index_this_hold.html.i@0: missing revlog!
 0: empty or missing index_this_hold.html
 index_this_hold.html@0: b8b2b36a6eea in manifests not found
 data/nbproject/project.properties.i@14: missing revlog!
 14: empty or missing nbproject/project.properties
 nbproject/project.properties@14: 1efa3074378b in manifests not found
 data/nbproject/project.xml.i@14: missing revlog!
 14: empty or missing nbproject/project.xml
 nbproject/project.xml@14: 52689bf2b35a in manifests not found
 data/rcrawley/.buildpath.i@9: missing revlog!
 9: empty or missing rcrawley/.buildpath
 rcrawley/.buildpath@9: 2c6411d4fcff in manifests not found
 data/rcrawley/.project.i@9: missing revlog!
 9: empty or missing rcrawley/.project
 rcrawley/.project@9: cb4b1495acab in manifests not found
 data/rcrawley/assets/images/ajax-loader.gif.i@9: missing revlog!
 9: empty or missing rcrawley/assets/images/ajax-loader.gif
 rcrawley/assets/images/ajax-loader.gif@9: 8ef26516c7da in manifests not found
 data/rcrawley/index.html.i@9: missing revlog!
 9: empty or missing rcrawley/index.html
 rcrawley/index.html@9: 545246299dee in manifests not found
 data/rcrawley/index.php.i@9: missing revlog!
 9: empty or missing rcrawley/index.php
 rcrawley/index.php@9: 66eac798ed6d in manifests not found
 data/rcrawley/index_backup.php.i@9: missing revlog!
 9: empty or missing rcrawley/index_backup.php
 rcrawley/index_backup.php@9: 93971228fbf5 in manifests not found
 data/rcrawley/system/index.html.i@9: missing revlog!
 9: empty or missing rcrawley/system/index.html
 rcrawley/system/index.html@9: 17360d3b566e in manifests not found
 data/rcrawley/testera.php.i@9: missing revlog!
 9: empty or missing rcrawley/testera.php
 rcrawley/testera.php@9: 7d9bd5196740 in manifests not found
 data/testera.php.i@0: missing revlog!
 0: empty or missing testera.php
 testera.php@0: 6e9e3666c1bc in manifests not found
1646 files, 59 changesets, 1897 total revisions
57 integrity errors encountered!
(first damaged changeset appears to be 0)

由于第一个损坏的变更集是 0,这看起来非常终端。这附近还有吗?

任何帮助将不胜感激。

i think ive managed to corrupt one of mercurial repositories, is there anyway to recover the damage? the message i get when attempting to update the repo to my default branch is:

PS C:\wco\projects\ims\code> hg up -C default
abort: data/Trunk/application/models/priority_model.php.i@83dbdfb60981: no match found!

when i run hg verify, i get the following report:

PS C:\wco\projects\ims\code> hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
 data/.buildpath.i@0: missing revlog!
 0: empty or missing .buildpath
 .buildpath@0: daf15acb5273 in manifests not found
 data/.project.i@0: missing revlog!
 0: empty or missing .project
 .project@0: e8b25997d6d1 in manifests not found
 Rawlings IMS/index.html@3: empty or missing copy source revlog index.html:b8b2b36a6eea
 Rawlings IMS/index.php@3: empty or missing copy source revlog index.php:a5f76bf232e9
 Rawlings IMS/index_backup.php@3: empty or missing copy source revlog index_backup.php:a5f76bf232e9
 Rawlings IMS/index_this_hold.html@3: empty or missing copy source revlog index_this_hold.html:b8b2b36a6eea
 Rawlings IMS/testera.php@3: empty or missing copy source revlog testera.php:6e9e3666c1bc
 Trunk/application/models/priority_model.php@32: 83dbdfb60981 in manifests not found
 data/index.html.i@0: missing revlog!
 0: empty or missing index.html
 index.html@0: b8b2b36a6eea in manifests not found
 data/index.php.i@0: missing revlog!
 0: empty or missing index.php
 index.php@0: a5f76bf232e9 in manifests not found
 data/index_backup.php.i@0: missing revlog!
 0: empty or missing index_backup.php
 index_backup.php@0: a5f76bf232e9 in manifests not found
 data/index_this_hold.html.i@0: missing revlog!
 0: empty or missing index_this_hold.html
 index_this_hold.html@0: b8b2b36a6eea in manifests not found
 data/nbproject/project.properties.i@14: missing revlog!
 14: empty or missing nbproject/project.properties
 nbproject/project.properties@14: 1efa3074378b in manifests not found
 data/nbproject/project.xml.i@14: missing revlog!
 14: empty or missing nbproject/project.xml
 nbproject/project.xml@14: 52689bf2b35a in manifests not found
 data/rcrawley/.buildpath.i@9: missing revlog!
 9: empty or missing rcrawley/.buildpath
 rcrawley/.buildpath@9: 2c6411d4fcff in manifests not found
 data/rcrawley/.project.i@9: missing revlog!
 9: empty or missing rcrawley/.project
 rcrawley/.project@9: cb4b1495acab in manifests not found
 data/rcrawley/assets/images/ajax-loader.gif.i@9: missing revlog!
 9: empty or missing rcrawley/assets/images/ajax-loader.gif
 rcrawley/assets/images/ajax-loader.gif@9: 8ef26516c7da in manifests not found
 data/rcrawley/index.html.i@9: missing revlog!
 9: empty or missing rcrawley/index.html
 rcrawley/index.html@9: 545246299dee in manifests not found
 data/rcrawley/index.php.i@9: missing revlog!
 9: empty or missing rcrawley/index.php
 rcrawley/index.php@9: 66eac798ed6d in manifests not found
 data/rcrawley/index_backup.php.i@9: missing revlog!
 9: empty or missing rcrawley/index_backup.php
 rcrawley/index_backup.php@9: 93971228fbf5 in manifests not found
 data/rcrawley/system/index.html.i@9: missing revlog!
 9: empty or missing rcrawley/system/index.html
 rcrawley/system/index.html@9: 17360d3b566e in manifests not found
 data/rcrawley/testera.php.i@9: missing revlog!
 9: empty or missing rcrawley/testera.php
 rcrawley/testera.php@9: 7d9bd5196740 in manifests not found
 data/testera.php.i@0: missing revlog!
 0: empty or missing testera.php
 testera.php@0: 6e9e3666c1bc in manifests not found
1646 files, 59 changesets, 1897 total revisions
57 integrity errors encountered!
(first damaged changeset appears to be 0)

since the first damaged changeset is 0, this would appear to be pretty terminal. Is there anyway around this?

any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

伊面 2024-09-04 03:37:01

hg.ignoreerrors 还允许在读取源代码时忽略丢失的 revlog 错误,这对于修复存储损坏的存储库可能很有用。将此选项设置为 True 并从 Mercurial 转换为 Mercurial。

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

阅读本节(尝试 hg 转换)。

hg.ignoreerrors also let missing revlog errors to be ignored when reading the source, which may be useful to fix a repository with a damaged store. Set this option to True and convert from Mercurial to Mercurial.

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

Read this section (trying hg convert).

小…红帽 2024-09-04 03:37:01

您的存储库似乎已被炸毁 - 并将其作为错误报告发布到 Mercurial 错误跟踪器 &在 Mercurial irc 聊天室与 mpm 交谈,他非常有帮助。

Your repo appears fried - and post this as a bug report to the Mercurial bug tracker & talk to mpm on the mercurial irc chatroom, he's very helpful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文