24

Subversion checkout over ssh

So, you want to checkout source code on some server and at the same time have ability to commit or diff against local copy on your laptop? Seems like an easy task, but it does involve some unexpected steps (for me at least), so here is a quick how to... Create ssh tunnel from target host back to your laptop (called llin in output). Edit .ssh/config and add something like: Host server-dev.rot13.org server-dev Hostname server-dev.rot13.org RemoteForward 8022 127.0.0.1:22 You will notice that I added short name so I can type just ssh server-dev because I'm lazy.

Request Tracker + Subversion + SVN::Web = microblogging

This might seem like a strange title, but let's look at it for a moment. If subversion commit messages carry magic marker (RT #1234 in my case) I want to create RT comment (micro-blog post) with link back to SVN::Web repository (and thus commit which created comment in first place). Nice and circular :-) First, install subversion post-commit hook in /srv/svn/repository/hooks/post-commit: #!/bin/sh REPOS="$1" REV="$2" /srv/svn/svn-rt-comment.pl $REPOS $REV After that, create following script:

Subversion downgrade and permission errors

We had a double-disk failure on RAID5 array last week (yes, it does happen). One of things that got affected was our source code repository. So, we reinstalled etch and installed subversion, did svnadmin verify on repository and all seemed well until we tried to commit using SVN DAV. Apache's error log was full of errors like this: Could not create activity /svn/repo/!svn/act/9526cf2d-4893-4b35-a843-4c0f2d9f8bc6. [500, #0] could not open dbm files.

Sync part of subversion repository

I had a particular problem at work: we have upstream subversion repository which we access over ssh tunnel (using svn protocol) which contains two branches in which we are interested and various other stuff we don't care about (and don't want to mirror). On other hand, we also wanted to have local copy of all changes (preserving history) and local commit messages and SVN::Web interface. In original idea, I also wanted to keep revision numbers as-is (so I can just checkout our local version and be done), but this wasn't possible.

Valid XHTML 1.0 Strict

Syndicate content