SVN

SVN: Relocate all subdirectories

I had to change the location of a SVN server for quite some working copies since we migrated from Subversion 1.4.6 to 1.7.1 and change the protocol from svn to http.

  1. for dir in $(ls); do 
  2.     if [ -d $dir ]; then 
  3.         echo "Processing $dir"; 
  4.         cd $dir; 
  5.         url=$(svn info| grep URL | grep "svn://" | sed 's#URL: svn://old-server/path/to/##'); 
  6.  
  7.         if [ "x$url" == "x" ]; then 
  8.             cd ..; 
  9.             continue; 
  10.         fi; 
  11.  
  12.         echo $url; 
  13.         svn relocate <a href="http://new-server/new/path/to/">http://new-server/new/path/to/</a>$url; 
  14.         cd ..; 
  15.     fi 
  16. done

Themen:

Development:

Checkout changed files between two revisions from Subversion

I sometimes want to checkout only files that changed between two revisions in Subversion.

A simple shell command can do that easily for me.

Development:

Resolve incoming conflicts with SVN automatically

OK, you might expect that I have the killer tool that really solves merge conflicts automatically, but this one-liner is much simpler.

I sometimes update my local sandbox from the SVN repository and it happens that I get merge conflicts for some reasons. Mainly this happens for XML files that are re-ordered internally although having the same content in fact.

Therefore I regularly face the problem that I could simply solve the conflicts by accepting all incoming versions or by staying with mine.

This one-liner helps here

 

Development:

Themen:

Linux:

Backporting Subversion 1.6 to Debian Etch

Unfortunately I've to use a machine running Debian Etch. Yes, that's pretty old and it should definetily updated to Lenny asap, BUT I'm not the admin... *sigh*

It's getting even harder since we'd like to use Subversion 1.6 on that machine for some reason. Firstly because of the better reintegration mechanisms compared to 1.5. Therefore I'm trying to backport the current Squeeze packages to Etch.

Development:

Themen:

Linux:

Subversive in Eclipse Ganymede

I updated my pretty old Eclipse Europa installation to Ganymede today. OK, the restart you have to do quite often were really annoying, but besides that everything worked quite well.

Development:

Securely setup subversion (SVN) with Apache

There are a lot of explanations out explaining how to setup Subversion and Apache to work smoothly together. Since I'm a bit paranoid I'd like to give one the needed rights to the Apache user.

But let's start at the beginning and setup the environment before we care about the proper rights.

Development:

Themen:

Internet:

Resurection of Nautilus CVS scripts

I have to use CVS quite often and from time to time I'd like to use it directly from Nautilus. There was a project 'nautilus-cvs-scripts' that could be found at http://jodrell.net/projects/nautilus-cvs-scripts. Unfortunately it was dropped, but the SVN version is quite similar and based on the CVS version.

Linux:

Development:

Subscribe to RSS - SVN

Syndicate

Subscribe to Syndicate