svn

sharing a svn repo

Recently I had few problems with a svn repository that is shared between multiple ssh users. I followed the instructions in the svn book and to solve the problem once for all I recreated the repo from scratch. Briefly:

svnadmin dump SVN > /tmp/dump
mv SVN SVN-old
svnadmin create SVN
chmod -R g+rw SVN
find SVN -type d -exec chmod g+s {} \;
chown -R root.cvs SVN
 svnadmin load SVN < /tmp/dump

hopefully this is gonna work.

svn wrapper / umask 002

svn db/current problem

A while ago one of my svn repositories became all the sudden inaccessible. It turned out that the file db/current got corrupted for some reason, leaving the repo in an inconsistent state.
The file db/current in a svn repository (using the FSFS backend) contains the largest revision number and the next unique node and copy ids. Googling around I found this old message [1] explaining the problem, but not providing any satisfactory solution.

SVN Snapshots script

This is a small script to generate code snapshots from the svn repository.

#!/bin/bash
#
# MakeSvnSnapshot.sh
# Purpose: To make easily downloadable (clean) versions of a snapshot of code.
# Intended Use: Called as a daily/weekly/etc cron job
#
# Author: Colin Ross <cross@php.net>
# Modified Pietro Abate <pietro.abate@pps.jussieu.fr>
#
# License:
# This work is licensed under the
# Creative Commons Attribution-Share Alike 2.5 License.
# To view a copy of this license,
# visit http://creativecommons.org/licenses/by-sa/2.5/
# or send a letter to
# Creative C

Syndicate content