wiki:Notes/Subversion/Importing

Version 4 (modified by VincentMcIntyre, 17 years ago) (diff)

--

Notes/Subversion/Importing

Importing RCS files to a repository

STILL WORKING ON THIS PAGE

Initial Import

Just importing the miriad tree as it stands is unsatisfactory, because we lose the revision history.

Note: there is a bug in the version of cvs2svn available in the Debian sarge release that causes the import to die partway through. The version available in Debian etch works correctly.

 % mkdir miriad
 % rsync -av /nfs/atapplic/miriad/ miriad/
 % cvs2svn --dumponly --dumpfile=20071123.svndump miriad

 # assuming we have a repo at /srv/svn/projects/miriad
 % svnadmin load /srv/svn/projects/miriad < 20071123.svndump
 % 
 # --dumponly is useful for importing a CVS into an existing SVN

To do later imports

  % mkdir miriad2
  % cvs2svn --dumponly --dumpfile=20071124.svndump miriad2
  % not sure what comes next. I think

next phase

need to remove the compiled binaries need to check out the code (and svn add all the files?)

No - just do the cvs2svn dump. that does the checkout but it leaves the source in the '.rcs' directory. Must move it from there. The dump leaves darwin_ppc, darwin_x86 there as well. These contain just a short GNUmakedefs file.

need to change the chkout, chklog targets need to add handlers of .svn directories

makefile has an 'ftp' target, the comment about solaris-only is wrong.


Notes Home