Ruby Forum Ruby-core > revision number in ruby -v (1.9)

Posted by Joel VanderWerf (Guest)
on 21.04.2008 08:53
(Received via mailing list)
Why does `svn info` say 16110, but `ruby -v` says 15824?

$ svn info
Path: .
URL: http://svn.ruby-lang.org/repos/ruby/trunk
Repository Root: http://svn.ruby-lang.org/repos/ruby
Repository UUID: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Revision: 16110
Node Kind: directory
Schedule: normal
Last Changed Author: knu
Last Changed Rev: 16107
Last Changed Date: 2008-04-20 05:01:27 -0700 (Sun, 20 Apr 2008)

$ ruby19svn -v
ruby 1.9.0 (2008-04-20 revision 15824) [i686-linux]
Posted by Yukihiro Matsumoto (Guest)
on 21.04.2008 09:05
(Received via mailing list)
Hi,

In message "Re: revision number in ruby -v (1.9)"
    on Mon, 21 Apr 2008 15:52:55 +0900, Joel VanderWerf 
<vjoel@path.berkeley.edu> writes:

|Why does `svn info` say 16110, but `ruby -v` says 15824?

Perhaps the latest revision does not belong to trunk.

              matz.
Posted by U.Nakamura (Guest)
on 21.04.2008 09:12
(Received via mailing list)
Hello,

In message "revision number in ruby -v (1.9)"
    on Apr.21,2008 15:52:55, <vjoel@path.berkeley.edu> wrote:
> Why does `svn info` say 16110, but `ruby -v` says 15824?

run ``make up''.


Regards,
Posted by Joel VanderWerf (Guest)
on 21.04.2008 09:18
(Received via mailing list)
Yukihiro Matsumoto wrote:
> Hi,
> 
> In message "Re: revision number in ruby -v (1.9)"
>     on Mon, 21 Apr 2008 15:52:55 +0900, Joel VanderWerf <vjoel@path.berkeley.edu> writes:
> 
> |Why does `svn info` say 16110, but `ruby -v` says 15824?
> 
> Perhaps the latest revision does not belong to trunk.

Ok. Makes sense. What's puzzling me is that when I updated 1.9 recently,
the reported revision didn't change, even though it seemed like a lot of
files got updated and built.

Before:

$ ruby19svn -v
ruby 1.9.0 (2008-03-21 revision 15824) [i686-linux]

After:

$ ruby19svn -v
ruby 1.9.0 (2008-04-20 revision 15824) [i686-linux]

So, is the date more important than svn revision for determining what
interpreter version is running?
Posted by Joel VanderWerf (Guest)
on 21.04.2008 09:19
(Received via mailing list)
U.Nakamura wrote:
> Hello,
> 
> In message "revision number in ruby -v (1.9)"
>     on Apr.21,2008 15:52:55, <vjoel@path.berkeley.edu> wrote:
>> Why does `svn info` say 16110, but `ruby -v` says 15824?
> 
> run ``make up''.

Ah, thanks! Please ignore my other question.
Posted by Charles Oliver Nutter (Guest)
on 21.04.2008 15:46
(Received via mailing list)
Joel VanderWerf wrote:
> Ok. Makes sense. What's puzzling me is that when I updated 1.9 recently, 
> the reported revision didn't change, even though it seemed like a lot of 
> files got updated and built.

I think the "how" has been answered but not the why. Generally revision
numbers are kept in a file that's included in the build and which has
tags in it that SVN updates. Updating other files does not change the
revision number in that file, so even if lots of files change the -v
revision number won't be different. I guess "make up" forces that file
to contain the latest rev number.

- Charlie