在没有转储文件的情况下恢复 SVN 存储库 [英] Recovering a SVN Repository with out a dump file

查看:50
本文介绍了在没有转储文件的情况下恢复 SVN 存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个没有转储文件的旧存储库.不过,我确实拥有完整的存储库,并且希望我可以让它在新系统上运行.

I have an old repository that I have no dump file for. I do have the complete repository, though, and am hoping that I can get it running on a new system.

我尝试阅读服务器故障后从目录备份中恢复 svn 这给了我希望,但似乎对我不起作用.每当我将 TortoiseSVN 或 svnadmin 指向存储库文件夹进行检查时,它都会报告没有这样的修订版 1",尽管 db 文件夹中有 130 转.

I tried reading Recover svn from directory backup after server failure which gives me hope, but doesn't seem to have worked for me. Whenever I point TortoiseSVN or svnadmin at the repository folder to examine it, it reports "No such revision 1" despite there being 130 revs in the db folder.

如果您能提供任何建议,我们将不胜感激.

Any advice you could offer would be greatly appreciated.

托尼

推荐答案

这篇博文 提到了错误信息,请遵守不同的修订号.

This blog post mentions the error message, abide with a different revision number.

我注意到错误声称修订版 296 不存在,事实上,当我打开 db/revs 文件夹时只上升到 295.完全疯狂的猜测,我打开了/current 文件并注意到它有 296上面的修订号,所以我假设这是指向最新的指针修订版,但数据从未成功到服务器...我修改了号码到 295 和一切立即开始工作.

I noticed that the error claimed that revision 296 did not exist and indeed, when I opened the db/revs folder it only went up to 295. With a completely wild guess, I opened the /current file and noticed that it had the 296 revision number on it, so I assumed this is the pointer to the latest revision, but the data never made it to the server... I modified the number to 295 and everything immediately started working.

虽然这有点黑客.

这篇关于在没有转储文件的情况下恢复 SVN 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆