-#~# BRANCH=$(git branch 2>/dev/null | sed -r "s/^[^*].*$//" | paste -s -d '' | sed -r "s/^[*] //")
-#~# if [ -n "$BRANCH" ];
-#~# then
-#~# TYPE="git"
-#~# else
-#~# BRANCH=$(darcs show repo 2>/dev/null| egrep '^ *Cache' | sed 's@.*/\([^/]*\),.*@\1@')
-#~# if [ -n "$BRANCH" ];
-#~# then
-#~# TYPE="darcs"
+#~# declare -a TYPE
+#~# declare -a BRANCH
+#~# TYPE[0]="git"
+#~# TYPE[1]="mercurial"
+#~# TYPE[2]="darcs"
+#~# TYPE[3]="svn"
+#~# BRANCH[0]='git branch 2>/dev/null | sed -r "s/^[^*].*$//" | paste -s -d "" | sed -r "s/^[*] //"'
+#~# BRANCH[1]='hg branch 2>/dev/null'
+#~# BRANCH[2]="darcs show repo 2>/dev/null| egrep '^ *Cache' | sed 's@.*/\([^/]*\),.*@\1@'"
+#~# BRANCH[3]="svn info 2>/dev/null | head -n 6 | tail -n 1"
+#~# for i in $(seq 0 $((${#BRANCH[*]}-1))); do
+#~# LBRANCH=$(eval "${BRANCH[$i]}")
+#~# if [ -n "$LBRANCH" ]; then
+#~# LTYPE="${TYPE[$i]}"
+#~# break