jerakeen.org

by Tom Insam

notes☴

code☷

links☲

photos☵

Xcode 3.1.2 and Subversion 1.5.x compatibility

Xcode 3.1.2 and Subversion 1.5.x compatibility

created 06 April 2009 in links tagged subversion and xcode.

Short version - XCode is linked against the svn 1.4 libraries, and svn 1.5 uses a newer checkout format. If you’ve upgraded your client, and want to use XCode, check out the repository using a 1.4 version of the svn client or XCode won’t talk to it. You can use the newer client to talk to the checkout after this, it’s just the initial checkout that needs to be with a 1.4 client.

http://talentgrouplabs.com/blog/archive/2008/12/02/xcode-...

Beanstalk — Version Control with a Human Face

Beanstalk — Version Control with a Human Face

created 05 June 2008 in links tagged hosting and subversion.

Another hosted subversion repository. I need a comparative review of these things

http://beanstalkapp.com/pricing.html

Unfuddle: Subversion Hosting, Git Hosting, Bug and Issue Tracking

Unfuddle: Subversion Hosting, Git Hosting, Bug and Issue Tracking

created 30 May 2008 in links tagged hosting and subversion.

Someone to look at next time I’m musing a hosted svn server, alternative to wush.net

http://unfuddle.com/

Svnmerge.py - SubversionWiki

Svnmerge.py - SubversionWiki

created 20 May 2008 in links tagged development, merge and subversion.

python tool for merging svn repository branches automatically. Possible alternative to using SVK for branch management. Or I could just wait for svn 1.5

http://www.orcaware.com/svn/wiki/Svnmerge.py

One of the Wolves » Ruby Subversion Bindings: Better Documentation…

One of the Wolves » Ruby Subversion Bindings: Better Documentation…

created 11 March 2008 in links tagged bindings, ruby and subversion.

Useful ruby wrapper class for the svn bindings (which ship with 10.5, rah)

http://www.oneofthewolves.com/2007/12/22/ruby-subversion-...

using python to access subversion repositories

using python to access subversion repositories

created 30 November 2006 in blog tagged cms, python and subversion.

I’m experimenting with a simple source code browser for jerakeen.org. Right now it’s trivial - just a list of folders and links to files, but what I’m aiming for is pages showing the check-in history of various folders, when they were last changed, etc - essentially, the sort of boring stuff I’d get for free were I to use svnweb or trac or something.

As usual, though, that’s not the point. I’d hate to have a web site that consisted of several different apps, written in different languages, needing hundreds of different apache modules, and all looking different - or needing different templates if I wanted to give them similar appearances. I’m not very good at design and building templates, so as a crazy insane developer, it’s easier for me to write a subversion browser than it would be to bully trac into looking the way I want it.

So, the pysvn bindings - Python bindings to the subversion client library. They’re lovely.

import pysvn
client = pysvn.Client()
projects = client.ls("https://jerakeen.org/svn/tomi/Projects")
for project in projects:
    print " * %s"%project.name

The logic behind the pages under /source isn’t much more complex than that. There’s no caching, I don’t have to have a local checkout, and it’s easily fast enough for a little website like this. The (fairly sparse) docs don’t make it sufficiently clear, to my mind, that you can point the client at a remote repository instead of a local checkout, but you can.

Another trick (hack) I use is providing a ‘short name’ method to the directory entry objects. I pass the objects returned from the ls call directly to the django template, but you’re not allowed to do anything clever in template space (the templates are touched by those designer people - can’t trust ‘em). To make it easier to print a human-readable name for the entries, I poke a short method into their namespace:

def short_name(self):
    offset = self.name.rfind('/') + 1
    return self.name[offset:]

PysvnDirent.short = short_name

Then the template needs a simple

<h2>files here</h2>
{% for file in files %}
  <p><a href="{{ file.name }}">{{ file.short }}</a></p>
{% endfor %}

Evil. I’m clearly still too much of a perl programmer…

pysvn.tigris.org

pysvn.tigris.org

created 28 November 2006 in links tagged bindings, python and subversion.

http://pysvn.tigris.org/

Ignoring resource fork files files with subversion

created 31 October 2006 in blog tagged macos, programming and subversion.

If you’ve ever edited files over samba, or on a fat partition, using a mac, you’ll know that it scatters annoying ._foo.txt files all over the place when you save things. These files are the system’s way of compensating for these filesystems not supporting ‘real’ resource forks, and they’re a complete pain. I feel this pain especially when I’m trying to see what’s changed in a subversion checkout using svn st, and it produces 30 lines of ? ._foo.pl complaints.

Fortunately, subversion allows you to ignore this stuff. Edit the file ~/.subversion/config (which is created the first time you use the subversion client), and search for the ‘miscellany’ section. Uncomment the line [miscellany] if it’s not already, and also uncomment the line beginning global-ignores. This line is a list of glob patterns for files that should be ignored when doing a svn st, or svn add (if you svn add on a folder, it won’t add any backup files in the folder, for instance). Add the pattern ._* to the end of it, and your resource fork woes are over…

Wilcox Development Solutions Project Blog: HowTo: Get Out The Icon Files In A Subversion Repo

Wilcox Development Solutions Project Blog: HowTo: Get Out The Icon Files In A Subversion Repo

created 28 January 2006 in links tagged evil, icon, mac and subversion.

I’ve done this. Very annoying

http://www.wilcoxd.com/blog/archives/000083.html

Revision 28: /website

Revision 28: /website

created 11 January 2006 in links tagged london.pm, subversion and website.

http://london.pm.org/svn/main/website/

oops

created 17 March 2005 in blog tagged subversion.

ok, keeping your apache config files in subversion is a Good Idea. But keeping the config files that CONTROL THE SUBVERSION REPOSITORY in the SAME SUBVERSION SERVER probably isn’t.

CVS vs Subversion

created 26 November 2004 in blog tagged subversion.

Tagging things in CVS

cvs -d user@server:/root co Something
..wait..
cd Something
cvs tag Tag_Name
..wait..

Tagging things in Subversion

svn cp http://server/root/Something http://server/root/tags/Tag_Name

The svn tag returns practically instantly. I’m still waiting for the CVS tag to finish. Of course, it’s all software. But svn sucks slightly less.