Skip to contentSkip to conversation

Migrating from Serena PVCS to GIT

DISCUSSION Rivka Pollack 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Is there a simple way to migrate from Serena PVCS, with all of our older, versioned, documentation, into GIT repositories?
Thanks.

#1 lore raw

Rivka Pollack:

Quoted 1 line

Is there a simple way to migrate from Serena PVCS, with all of our older, versioned, documentation, into GIT repositories?

The only more-or-less reliable export from PVCS that I have found is to RCS. There is a script for PVCS-to-RCS export in the CVS source archives (I needed to hack the scripts a bit to get them to run properly, unfortunately I do not have access to those changes). It needs to be run on a machine that has both PVCS and RCS binaries installed, and it needs to check out every revision for every file, so it does take some time to run.

After doing that, I moved the RCS files to a CVS-like directory layout and imported them into Git using one of the CVS-to-Git migration tools.

A tedious process, but it can be done.

Signature · 1 line
\\// Peter - http://www.softwolves.pp.se/
#2 lore raw

Following up my own reply:

Quoted 1 line

There is a script for PVCS-to-RCS export in the CVS source archives (I needed to hack the scripts a bit to get them to run properly, unfortunately I do not have access to those changes).

IIRC, the changes I needed to make was to ensure that the files did not get their keyword expanded again by RCS (adding -ko mode; this also survives into Git), since the revision numbers are off-by-one in RCS compared to PVCS (RCS starts at 1.1, PVCS at 1.0). I also had to extend the list of binary file types in the PVCS-to-RCS script to cover all the binary files that were checked in.

Signature · 1 line
\\// Peter - http://www.softwolves.pp.se/