From: Anthony Metcalf Date: 2009-10-01T00:32:00+09:00 Subject: Get current working copy version in subversion/git --------------enig692EA809D2C71672B00FB251 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, How would I report the current revision, of the subversion/git repo that is holding a ruby app? This is actually going to be used in rails, but it seems generally applicable to any ruby programming..... I keep my ruby and rails projects in subversion (or git, or in one case both...) and it would be nice to be able to show in my output, the current working copy revision number. I'd like to put this in my app/views/layouts/application.rb in rails for example, so that the people using my dev server can always see the revision when they are forming bug reports, and also include the information in the "email me a bug report" link I have on the front page.... I'd also like to include it in the about box of a wxRuby app ...= =2E. Thanks Anthony --------------enig692EA809D2C71672B00FB251 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkrDeiMACgkQtUxufNRmXkFTjgCgwAZUpvm/DYHuZu1lw6jrk/VZ hLYAoK289i50hY6KRyLZjTG0FIKUCr09 =MdmY -----END PGP SIGNATURE----- --------------enig692EA809D2C71672B00FB251--