dvcs-ripper: Rip web accessible (distributed) version control systems: SVN/GIT/HG
dvcs-ripper
Rip web accessible (distributed) version control systems: SVN, GIT, Mercurial/hg, bzr, …
It can rip repositories even when directory browsing is turned off.
Make sure to position yourself in the empty directory where you want repositories to be downloaded/cloned.
Installation
Requirement
sudo apt-get install perl libio-socket-ssl-perl libdbd-sqlite3-perl libclass-dbi-perl libio-all-lwp-perl
sudo apt-get install libparallel-forkmanager-perl libredis-perl libalgorithm-combinatorics-perl
sudo apt-get install cvs subversion git bzr mercurial
Install
git clone https://github.com/kost/dvcs-ripper.git
Usage
GIT
Example run (for git):
rip-git.pl -v -u http://www.example.com/.git/
It will automatically do git checkout -f
or if you would like to ignore SSL certification verification (with -s):
rip-git.pl -s -v -u http://www.example.com/.git/
Mercurial/HG
Example run (for hg):
rip-hg.pl -v -u http://www.example.com/.hg/
It will automatically do hg revert <file>
or if you would like to ignore SSL certification verification (with -s):
rip-hg.pl -s -v -u http://www.example.com/.hg/
Bazaar/bzr
Example run (for bzr):
rip-bzr.pl -v -u http://www.example.com/.bzr/
It will automatically do bzr revert
or if you would like to ignore SSL certification verification (with -s):
rip-bzr.pl -s -v -u http://www.example.com/.bzr/
SVN
It supports OLDER and NEWER version of svn client formats. Older is with .svn files in every directory, while newer version have single .svn directory and wc.db in .svn directory. It will automatically detect which format is used on the target.
Example run (for SVN):
rip-svn.pl -v -u http://www.example.com/.svn/
It will automatically do svn revert -R .
CVS
Example run (for CVS):
rip-cvs.pl -v -u http://www.example.com/CVS/
This will not rip CVS, but it will display useful info.
Copyright (C) kost
Source: https://github.com/kost/