# RSCM and subversion

**URL:** <https://www.ruby-forum.com/t/rscm-and-subversion/85642>\
**Category:** Ruby\
**Created:** [February 15, 2007, 4:43am UTC](https://www.ruby-forum.com/t/rscm-and-subversion/85642 "2007-02-15T04:43:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![craig\_b](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/76d3ee/32.png) [@craig\_b](https://www.ruby-forum.com/u/craig_b)\
**Post date:** [February 15, 2007, 4:43am UTC](https://www.ruby-forum.com/t/rscm-and-subversion/85642/1 "2007-02-15T04:43:17Z")

</div>

Anyone know how to get the svn revision number of a locally checked-  
out working copy via rscm?

I’ve hacked about a bit in irb to see how things work (the docs are a  
little thin) but this one thing has eluded me. It can tell me if the  
WC is not the current version – but only the current version AFAIK  
which is different from (a) the actual checked-out revision and (b)  
is the current local revision up-to-date (which does not mean == to  
the HEAD revision)

Am I just blind, or does rscm lack the ability to tell me what the  
revision number is a la `svn info`? (and yes, I can fall back to  
parsing the output of `svn info`

–  
Craig B.

AIM: kreiggers

---

<div class="post-metadata">

**Author:** ![craig\_b](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/76d3ee/32.png) [@craig\_b](https://www.ruby-forum.com/u/craig_b)\
**Post date:** [February 15, 2007, 7:19am UTC](https://www.ruby-forum.com/t/rscm-and-subversion/85642/2 "2007-02-15T07:19:26Z")

</div>

Craig B. wrote:

> Am I just blind, or does rscm lack the ability to tell me what the  
> revision number is a la `svn info`? (and yes, I can fall back to  
> parsing the output of `svn info`  
> We have just solved this problem, and you can probably adopt some code  
> from here:  
> [http://rubyforge.org/viewvc/trunk/app/models/subversion.rb?revision=103&root=cruisecontrolrb&view=markup](http://rubyforge.org/viewvc/trunk/app/models/subversion.rb?revision=103&root=cruisecontrolrb&view=markup)  
> Specifically, look for Subversion#latest\_revision method.

Best regards,  
Alex Verkhovsky
