Subversive behaviour

I’m a big fan of version control. I use RCS to control versions of files I’m editing on my machines, and these days I use Subversion (instead of the venerable, but less cross-platform and more annoying CVS) for version control on projects I’m working on.

I’m still learning about Subversion, annoyingly it seems you can’t check out a single file, which of course makes sense because it would then leave Subversion nowhere to write its hidden version information directory (I wonder if that’ll change with the advent of Subversion using a single file to store all its working copy information). I did try to ’svn export’ a single file from the repository, but I got the error message “”.

Subversion does however have the ’svn cat’ command, which dumps the contents of a file. So using the ‘power’ of unix you can pipe that file to a shell thus:

svn cat svn+ssh://username@example.com/SVN/trunk/evilshellscript.sh | /bin/sh

thus you could put some more svn commands in evilshellscript.sh and it could checkout more files from the repository, take over your machine, or do all sorts of nasty stuff. I use it to checkout and put some more files and put them in the right place.
My vision is of walking up to a pristine new Mac, entering one command, and having the machine download and install all the software I use and setting itself up just the way I like it.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Ma.gnolia
  • NewsVine
  • Reddit
  • RawSugar

Related posts:

  1. Command of the week So, you’ve got 20+ clients who’ve flown in from interstate...
  2. Soon with shiny Wordpress 2.3 goodness So, I’ve converted to the latest wordpress 2.3. Basically this...
  3. Commandline Spotlight tricks So you can list the information about a file by...
  4. Welcome to Osaka In line with Apple not issuing a patch for Western...
  5. Fun with Windows Here’s a reasonably complete guide to filenames that Windows doesn’t...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Reply

  • JoyOfTech

  • Recent Comments

  • Was it useful? Was it funny? Was it weird? Please tip the author!
  • airport apple apple_store apple_tv apple_university_consortium auc Australia Backup blackberry cocoa dantz emc fink Firewire flickr game iMac iPhone iphone_3g iphone_3gs iPhoto iPod ipod_nano ipod_touch iTunes java job keynote leopard Mac MacBook macbook_air macbook_pro macjob MacWorld macworld_2008 mac_os_x music retrospect safari Security steve_jobs time_capsule time_machine WWDC
  • Pages

  • Archives

  • Meta