threads / discuss / 22218

Migrating from Serena PVCS to GIT

Subject: Migrating from Serena PVCS to GIT

## tl;dr

3 messages between Jan 14, 2010 and Jan 14, 2010.

replies: 2people: 2as markdown or json

Peter Krefting· Jan 14, 2010, 09:10 UTC · re: Rivka Pollack · lore

Re: Migrating from Serena PVCS to GIT

Rivka Pollack:
> 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.
-- 
\\// Peter - http://www.softwolves.pp.se/
Peter Krefting· Jan 14, 2010, 09:51 UTC · re: Peter Krefting · lore

Re: Migrating from Serena PVCS to GIT

Following up my own reply:
> 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.

-- 
\\// Peter - http://www.softwolves.pp.se/

← back to recent threads