有修复RCS / CVS,v文件的工具吗? [英] Is there a tool for repairing RCS/CVS ,v files?

查看:104
本文介绍了有修复RCS / CVS,v文件的工具吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将CVS和RCS存储库全部转换为Subversion。我时不时遇到一个损坏的v文件。我已经想出了如何手动修复这些文件,但是它变得很乏味,而且我的最新项目有很多损坏的文件,远远超出了我手动修复的范围。



所以我d想拥有一个分析和修复RCS文件的工具。这很可能意味着某些旧版本将不完整。例如,我见过缺少版本1.1的情况,因此添加带有注释的空修订表示该版本已成功。



我尝试了很多搜索找到这样的工具,却一无所获。我本来打算开始编写自己的工具,但我想我应该先在这里问一下。



我知道我可以获取代码快照并将其导入,而我如果必须的话,我会求助于此(只是拒绝这些建议:)



++谢谢

解决方案

我个人不建议手动迁移,因为该过程非常耗时,并且无法在生成的回购中设置完整的数据/元数据。 >

有一个用于将CVS迁移到SVN的工具,它称为 cvs2svn 。它是用于将CVS存储库迁移到Subversion,git或Bazaar的工具。
您可以参考此操作指南以快速入门


检查 out:


CVS只是RCS的前端,*。v文件实际上是RCS
文件。只是检查出来。例如,如果您有foo,v,只需执行:

  co foo 

,它将从.v文件中签出foo。


另外还有一个 RCS到SVN转换器,您也可以尝试使用它。


I am doing a whole bunch of conversions of CVS and RCS repositories into Subversion. Every now and then I run into a damaged ,v file. I have figured out how to repair these manually, but it's getting tedious, and my latest project has numerous damaged files, more than I care to repair manually.

So I'd like to have a tool to parse the RCS files and repair them. That may well mean some old versions will be incomplete. For example I've seen cases where version 1.1 was missing, so adding an empty revision with a comment indicating that it's missing does the trick.

I have done many searches trying to find such a tool, but have turned up nothing. I was about to start writing my own tool, but thought I should try asking here, first.

I know I could just get code snapshots and import those, and I'll resort to that if I have to (just to head off those suggestions :)

++thanks

解决方案

I personally do not recommend manual migration as the process is very time-consuming and there is no way to come out of it with a full data/metadata set in the resulting repo.

There is a tool for migrating CVS to SVN and it is called cvs2svn. It "is a tool for migrating a CVS repository to Subversion, git, or Bazaar". You can refer to this how-to for a quick start advice.

Check this out:

CVS was just a front end to RCS, and the *.v files are really RCS files. Just check them out. eg, if you have foo,v just execute:

co foo

and it will checkout foo from the ,v file.

Also there is an RCS to SVN converter and you can try that one too.

这篇关于有修复RCS / CVS,v文件的工具吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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