[p4] cvs2p4 used for direct RCS conversion

rmg@perfortify.com rmg at perfortify.com
Fri Sep 8 12:23:15 PDT 2006


> If you can't find the RCS to Perforce conversion, first convert your RCS
> repository to CVS, then use the cvs2p4 scripts. I've done RCS to CVS
> conversions, and it's pretty darn simple. Basically putting your RCS
> files in a repository, and creating the necessary CVS files in the
> CVSROOT directory (like modules, etc.).

cvs2p4 can be used pretty easily on an RCS repository directly.

On a basic level, cvs2p4 see's ANY repository to be converted as trees
of RCS-format ,v files. None of the stuff in $CVSROOT/CVSROOT/ is
required by cvs2p4.

The major difference, from the conversion's point of view, is that
"branch tags" are formatted differently in RCS. To account for this,
you can set

  # This flag is an experimental switch for better handling of
  # repositories that are actually "Plain RCS", i.e., not created by
  # CVS.
  #
  $PureRCS = 1;

in the config file.

So: I would claim, there's no need for the RCS->CVS conversion as a
prerequisite for converting your files.

Also note, the rcstoperf.sh tool was mainly intended as a quick way to
import some RCS for demo purposes. It is not very smart about
branching in particualr. cvs2p4 tries to handle all of this
"correctly".

Thanks!,

  - rmg


More information about the perforce-user mailing list