从 Subversion 损坏中恢复

发布于 2024-07-09 09:02:38 字数 572 浏览 13 评论 0原文

subversion 中出了问题,现在

svnadmin: Invalid diff stream: [tgt] insn 0 starts beyond the target view position

如果我尝试从存储库进行转储,我将面临问题。 我们在这里还有另一个问题 Subversion 存储库错误,但那里的解决方案对我来说不够好,因为腐败是 85 次修订。

因为损坏位于一个不太重要的目录中(不在主干/分支/标签中),所以我正在考虑两种解决方案:

  1. 从健康部分创建转储,并将其导入到新存储库后提交与重要目录的差异(丢失所有修订历史记录)
  2. 从健康部分创建转储并编写一个 ruby​​ 脚本来检查旧存储库中所需目录的每个修订。 这将创建一个用于修订的 diff 文件,并将其提交到带有作者姓名和原始评论的新存储库。

任何意见? :)

/JaanusSiim

Something has gone wrong in subversion and now I am facing

svnadmin: Invalid diff stream: [tgt] insn 0 starts beyond the target view position

if I try to make dump from repository. We have another question about it here Subversion Repository Error, but the solutions there are not good enough for me because the corruption is 85 revisions back.

Because the corruption is in one not so important directory (not in trunk/branches/tags) I was thinking about two solutions:

  1. Create a dump from healthy portion and after importing it to new repository commit diffs from important directories (losing all revision history)
  2. Create a dump from healthy portion and write a ruby script that would check every revision of needed directories in old repository. This will create a diff file for revision and commit it to new repository with authors name and original comment.

Any comments? :)

/JaanusSiim

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

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

发布评论

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

评论(1

凤舞天涯 2024-07-16 09:02:38

如果您确实需要访问您的来源,我建议您发送邮件至 [email protected]< /a> 解决你的问题。 有些阅读该列表的用户拥有恢复损坏的存储库的经验。 (在许多情况下,它没有在列表中报告,因为恢复源代码通常需要 NDA)

创建您可以访问的所有有效修订版本的转储文件不会造成损害,并且可能有助于恢复。

If you really need access to your sources I would recommend sending a mail to [email protected] with your problem. There are some users reading that list that have experience in recovering corrupt repositories. (In many cases it wasn't reported on list as recovering sourcecode commonly requires a NDA)

Creating a dumpfile of all valid revisions you can get access to won't harm and might help in recovering.

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