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.

About this Entry

This page contains a single entry by gozer published on February 7, 2005 12:08 PM.

Long Beach Bayou Festival 2004 was the previous entry in this blog.

Sweet bash ssh completion trick is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

  • uploaded

June 2008

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30