Subversion is not available, temporary switch to RCS

The server with the subversion repository has crashed. Repair takes a few days. How to work during repair? Git isn't a solution, because man had to switch before the disaster, not after.

My answer is: temporary switch to RCS.

Basic introduction to RCS

The Five-Minute RCS Tutorial - Automating System Administration with Perl by David N. Blank-Edelman

Adding RCS control

mkdir RCS
for f in *.py; do ci -t-initial -u $f; done
for f in *.py; do rcs -ko $f; done

Work

To modify:

co -l filename

After modification:

ci -u filename

Subversion returned back, re-play changes to it

Find which files have been changed:

find . -name RCS
svn status

Get all RCS revisions with log messages. For each RCS revision, checkout the revision and submit to subversion

rlog filename
co -r1.2 filename
svn commit filename
co -r1.3 filename
svn commit filename
...
co filename
svn commit filename

After the whole dir finished:

rcsdiff *py
rm -rf RCS
chmod +w files

Categories: linux

Updated: