DISQUS

DISQUS Hello! Life is grand is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Getting the SVN revision number in Ruby

Started by paulmwatson · 10 months ago

rev = `svn info`.match('Revision: (\d+)')[1]
That bit of Ruby code will return the Subversion revision number of the working copy it is run in.
`svn info` returns
Path: .
URL: http://svn.yourdomain.com/trunk/
Repository UUID: 4e38b711-8f0e-14 ... Continue reading »

2 comments

Add New Comment

Returning? Login