Subversion nits

I'm moving more and more of my repositories from CVS to Subversion, and for the most part I love it. It's great to be able to use svk to do off-line development whenever I want, it's a lot easier to maintain commit hooks, it's generally faster, and I like the branching and tagging mechanism so much better than the one in CVS.

There are just a few annoyances, none major.

First, svn export doesn't do the "permanent" expansion of keywords, and as near as I can tell, there's no option to make it do so. This is weird. I really do prefer to expand all keywords and lose the $$ markers for distributions, mostly so that if someone else imports my code into a CVS repository, I don't lose all the ID markers.

Second, having another copy of each file in the .svn directories is a real pain for recursive grep and similar recursive operations. There must be some way to tell grep to skip those directories, but I've not figured out what it is yet. I should poke at that some. Piping through grep -v .svn isn't the right solution.

Third, and this isn't really a problem with Subversion, rsync -C is just incredibly useful and is what I used to make distribution tarballs under CVS. Alas, not only does rsync not have a Subversion equivalent, but that wouldn't be useful since I build distribution tarballs from an exported tree where svn propget no longer works. So I'm still maintaining .cvsignore files in the repository and just duplicating the information in the svn:ignore property into them so that I can keep using rsync -C.

Posted: 2005-08-09 23:02 — Why no comments?

find . -name .svn -prune -o -type f -print | xargs grep "this is kind of annoying, isn't it"

grep "or, given zsh" **/*(.)

Posted by Jed Davis at 2005-08-10 00:13

See, the thing that particularly bugs me is that the obvious, grep -r --exclude=.svn, doesn't work. I think it only ignores but doesn't prune or something like that, but it should work.

I need to switch to zsh one of these days. That's probably a day-long project and then a month of fumbling as I try to cut tcsh out of my brain, since I've been using it as my interactive shell for twelve years now.

Posted by eagle at 2005-08-10 00:18

Last spun 2013-07-01 from thread modified 2013-01-04