1<div id="From-other-version-control-systems"></div> 2<div class="header"> 3<p> 4Next: [[cvs: Creating a directory tree from scratch#Creating a directory tree from scratch|From scratch]], Previous: [[cvs: Creating a directory tree from a number of files#Creating a directory tree from a number of files|From files]], Up: [[cvs: Setting up the files#Setting up the files|Setting up the files]] |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p> 5</div> 6 7---- 8 9<div id="Creating-Files-From-Other-Version-Control-Systems"></div> 10==== Creating Files From Other Version Control Systems ==== 11<div id="index-Importing-files_002c-from-other-version-control-systems"></div> 12 13If you have a project which you are maintaining with 14another version control system, such as <small>RCS</small>, you 15may wish to put the files from that project into 16<small>CVS</small>, and preserve the revision history of the 17files. 18 19<div id="index-RCS_002c-importing-files-from"></div> 20;From RCS 21: If you have been using <small>RCS</small>, find the <small>RCS</small> files—usually a file named ‘<tt>foo.c</tt>’ will have its <small>RCS</small> file in ‘<tt>RCS/foo.c,v</tt>’ (but it could be other places; consult the <small>RCS</small> documentation for details). Then create the appropriate directories in <small>CVS</small> if they do not already exist. Then copy the files into the appropriate directories in the <small>CVS</small> repository (the name in the repository must be the name of the source file with ‘<code>,v</code>’ added; the files go directly in the appropriate directory of the repository, not in an ‘<tt>RCS</tt>’ subdirectory). This is one of the few times when it is a good idea to access the <small>CVS</small> repository directly, rather than using <small>CVS</small> commands. Then you are ready to check out a new working directory. 22 23: The <small>RCS</small> file should not be locked when you move it into <small>CVS</small>; if it is, <small>CVS</small> will have trouble letting you operate on it. 24 25;From another version control system 26: Many version control systems have the ability to export <small>RCS</small> files in the standard format. If yours does, export the <small>RCS</small> files and then follow the above instructions. 27 28: Failing that, probably your best bet is to write a script that will check out the files one revision at a time using the command line interface to the other system, and then check the revisions into <small>CVS</small>. The ‘<tt>sccs2rcs</tt>’ script mentioned below may be a useful example to follow. 29 30<div id="index-SCCS_002c-importing-files-from"></div> 31;From SCCS 32: There is a script in the ‘<tt>contrib</tt>’ directory of the <small>CVS</small> source distribution called ‘<tt>sccs2rcs</tt>’ which converts <small>SCCS</small> files to <small>RCS</small> files. Note: you must run it on a machine which has both <small>SCCS</small> and <small>RCS</small> installed, and like everything else in contrib it is unsupported (your mileage may vary). 33 34<div id="index-PVCS_002c-importing-files-from"></div> 35;From PVCS 36: There is a script in the ‘<tt>contrib</tt>’ directory of the <small>CVS</small> source distribution called ‘<tt>pvcs_to_rcs</tt>’ which converts <small>PVCS</small> archives to <small>RCS</small> files. You must run it on a machine which has both <small>PVCS</small> and <small>RCS</small> installed, and like everything else in contrib it is unsupported (your mileage may vary). See the comments in the script for details. 37 38 39---- 40 41<div class="header"> 42<p> 43Next: [[cvs: Creating a directory tree from scratch#Creating a directory tree from scratch|From scratch]], Previous: [[cvs: Creating a directory tree from a number of files#Creating a directory tree from a number of files|From files]], Up: [[cvs: Setting up the files#Setting up the files|Setting up the files]] |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p> 44</div> 45This document was generated on <i>a sunny day</i> using [http://www.nongnu.org/texi2html/ <i>texi2html</i>]. 46