svn

welcome to the brave new world of git-svn

I'm definitely fed up with the lack of feature of svn. I always end up making backup copies of files, committing the wrong patch set, being unable to cherry-pick what to commit, not to talk about branching, merging and other marry activities. So today I overcome my laziness and setup a git svn repository for dose3 (since it's all there, go ahead, and be happy!).

The concept of git svn if pretty easy. You work with git, and from time to time, you commit in 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