Recovering files from archive of CVS *,v files

后端 未结 6 560
轻奢々
轻奢々 2020-12-31 17:56

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 C

相关标签:
6条回答
  • 2020-12-31 17:59

    You don't even need to use CVS. 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

    0 讨论(0)
  • 2020-12-31 18:02

    Depending on your platform, you might find rcs to work well, as long as you're looking at only a few files at a time. On many Unix/Linux systems, if my memory serves, you could use the co (checkout) command straight from the command line.

    Or you could take advantage of the fact that CVS and rcs store the latest version of the file on head near the top of the file, and any other revisions are created by applying diffs internally. Therefore, you can probably strip out the latest version easily using a text editor, and possibly automate it with a perl script. This trick won't work for any other version.

    These are options in case there's problems with quick installing a CVS server (if one isn't already installed; they tend to come with Unix-like systems) and checking out.

    0 讨论(0)
  • 2020-12-31 18:05

    Try to setup CVS client and read your files as local CVS repository.

    0 讨论(0)
  • 2020-12-31 18:08

    Latest windows binary can find here:

    https://ftp.gnu.org/non-gnu/cvs/binary/stable/x86-woe/
    

    For example: Place your reposity files here: c:\cvs (like c:\cvs\PROJECT create c:\cvs\CVSROOT

    create c:\work save cvs.exe here

    run:

    cvs -d c:\cvs checkout PROJECT
    
    0 讨论(0)
  • 2020-12-31 18:19

    This normally happens when someone makes check-ins ,updates files and u r accessing the directories/files.

    This worked for me- Simply close the terminal and open a new one.foo,v files will disappear and proper files would be shown.

    0 讨论(0)
  • 2020-12-31 18:22

    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.

    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.

    0 讨论(0)
提交回复
热议问题