从CVS *,v文件的存档中恢复文件 [英] Recovering files from archive of CVS *,v files
问题描述
我试图从以前由CVS管理的一堆文件中恢复一些旧的源代码(纯文本)。我有一个目录,其中包含CVS的*,v文件格式的所有源代码文件。这看起来像原始文件,但是里面有很多CVS特定的标头和修订信息。
I trying to recover some old source code (plain text) from a bunch of files that used to be managed with CVS. I have a directory containing all of the source code files in CVS's *,v file format. This looks mostly like the original files, but there are quite a bit of CVS specific header and revision information in there.
是否有一种简单的方法可以剥离所有CVS东西,只是保留文件的最新版本?
Is there a simply way to strip out all the CVS stuff and just keep the latest revision of the file?
推荐答案
是的,安装CVS客户端,将环境变量CVSROOT设置为指向存储库的根目录,然后键入 cvs checkout dir
,其中 dir
是存储库中的顶级目录。
Yes, install a CVS client, set environment variable CVSROOT to point to the root of your repository, and type cvs checkout dir
where dir
is a top level directory in your repository.
如果由于某种原因,您只有单个,v
文件,它们位于 rcs 格式,因此,如果安装了
rcs
程序,它应该能够从任何,v $中获得提示修订。 c $ c>文件。
If for some reason you only have individual ,v
files, they are in rcs
format, so if the rcs
program is installed it should be able to get the tip revision out of any ,v
file.
这篇关于从CVS *,v文件的存档中恢复文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!