man prcs2svn (Commandes) - Convert a PRCS project to a SVN repository

NAME

prcs2svn - Convert a PRCS project to a SVN repository

SYNOPSIS

prcs2svn prcs_project svn_repository

DESCRIPTION

prcs2svn is a simple minded program to convert a PRCS project to a SVN repository. Every version of the PRCS project being converted will be accessed as a tagged version in the SVN repository. This means that after running prcs2svn, the following commands will checkout the same set of files:

  prcs checkout -r <revision> <prcs_project>
  svn checkout <svn_repository>/tags/<revision> .

The svn_repository must already exist in the SVN server and the access rights must be already given to the user running the prcs2svn script, otherwise it will fail. A typical usage would be:

  [as root]
  rm -rf /svn/repo/<prcs_project>
  mkdir -p /svn/repo/<prcs_project>
  chown -R <user>:<group> /svn/repo/<prcs_project>

  [as user]
  prcs2svn <prcs_project> file:///svn/repo/<prcs_project>
  [or]
  prcs2svn <prcs_project> svn+ssh://<user>@<host>/svn/repo/<prcs_project>

prcs2svn completely ignores the merging tree of the PRCS project. It follows a simple algorithm to do the conversion: first, the list of versions is obtained with the prcs info command. Second, this list is processed sequentially, taking account of file additions and deletions. This algorithm is okay inside a branch when there are no merges and wheneach version has one parent and one child. However, the algorithm is suboptimal when changing branches in the list of versions.

Another limitation of prcs2svn is the fact that file and directory renaming is completely ignored. Renamed items will appear as deleted and added when going from one tagged SVN revision to the next.

OPTIONS

-h
Show command synopsis.
-q
Do not show the output of the prcs and svn commands being called.

AUTHOR

Rafael Laboissiere

SEE ALSO

prcs (1), svn (1)