Skip to content

Instantly share code, notes, and snippets.

@dap
Created December 18, 2009 03:15
Show Gist options
  • Save dap/259262 to your computer and use it in GitHub Desktop.
Save dap/259262 to your computer and use it in GitHub Desktop.
Convert from RCS to Git
Let's say you have something like:
/home/dap/workspace/awesome_code
Which contains your project files along with RCS:
awesome_code/
RCS/
code.pl
README
Here's how to convert that RCS directory to a git repo.
1. Grab git from http://git-scm.com/download and build (but don't install it):
$ cd ~/workspace
$ git clone git://git.kernel.org/pub/scm/git/git.git
$ cd git
$ make
2. Grab parsecvs from http://gitorious.org/parsecvs and build it:
$ cd ~/workspace
$ git clone git://gitorious.org/parsecvs/mainline.git parsecvs
$ cd parsecvs
$ make
3. Import your project:
$ cd ~/workspace/awesome_code
$ find -name '*,v' | ../parsecvs/parsecvs -l ../parsecvs/edit-change-log -p 1024
4. Clone your project:
$ cd ~/workspace
$ git clone awesome_code really_awesome_code
5. Now it's soup.
Of course you can install parsecvs and edit-change-log
however you see fit. Change paths as appropriate.
This how-to assumes that git binaries are already installed.
However, the git source is required in order to build parsecvs.
@bjmgeek
Copy link

bjmgeek commented May 11, 2022

unfortunately, git://gitorious.org/parsecvs/mainline.git parsecvs is no longer available.

@falz
Copy link

falz commented Mar 27, 2024

For future folk, this worked at time of writing.

env GIT_SSL_NO_VERIFY=true git clone https://gitorious.org/parsecvs/mainline.git

but one may be interested in https://github.com/BartMassey/parsecvs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment