Svn2Git migration


#!/bin/bash

# This script works for svn repos without branches and tags. Additional steps required to migrate branches too.
# all directories under <svn-repo-uri> (e.g.https://<svn-host>/svn/repos) will be migrated to a separate git repo:
REPOS=$(svn ls <svn-repo-uri>)

for repo in $(echo $REPOS | sed -e 's/\//\n/g')
do
git svn clone --no-metadata --authors-file=users.txt <svn-repo-uri>/"${repo}" "${repo}"-tmp.git
git clone "${repo}"-tmp.git "${repo}".git
rm -rf "${repo}"-tmp.git
cd "${repo}".git
git remote rm origin
# : e.g. git@<git-host>:<git-repo-path>
git remote add origin git@<git-host>:<git-repo-path>/"${repo}".git
git push origin master
git branch --set-upstream-to=origin/master master
cd ..
rm -rf "${repo}".git
done

Alpha up and running…

After a long break (~7 years) I reactivated my old but cool Alpha machine:


witch ~ # cat /proc/cpuinfo
cpu : Alpha
cpu model : EV56
cpu variation : 7
cpu revision : 0
cpu serial number :
system type : EB164
system variation : LX164
system revision : 0
system serial number :
cycle frequency [Hz] : 533175232 est.
timer frequency [Hz] : 1024.00
page size [bytes] : 8192
phys. address bits : 40
max. addr. space # : 127
BogoMIPS : 1053.12
kernel unaligned acc : 0 (pc=0,va=0)
user unaligned acc : 0 (pc=0,va=0)
platform string : Digital AlphaPC 164LX 533 MHz
cpus detected : 1
L1 Icache : 8K, 1-way, 32b line
L1 Dcache : 8K, 1-way, 32b line
L2 cache : 96K, 3-way, 64b line
L3 cache : 2048K, 1-way, 64b line


witch ~ # uname -a
Linux witch 4.1.5 #5 Tue Aug 18 08:55:11 CEST 2015 alpha EV56 EB164 GNU/Linux