« Long Beach Bayou Festival 2004 | Main | Sweet bash ssh completion trick »

February 7, 2005

HEAD revision of a remote subversion repository

I've been dreaming of the day svn info will take a repository URL instead of working from a WC. In the meantime, I've
found a cool trick that solves my problem:

$> export URL=http://svn.apache.org/repos/asf/
$> svn log -q -rHEAD $URL \
| head -2 \
| tail -1 \
| awk {'print $1'} \
| sed -e's/r//'

151745

And voila, you can tell the latest revision from a remote repository.

Posted by gozer at February 7, 2005 12:08 PM

Comments

Post a comment

Thanks for signing in, . Now you can comment. (sign out)

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Please enter the security code you see here


Remember me?