You could use an SVN keyword to insert the current revision in a file.
Put ''$Revision$'' in one of your files, then:
$ svn propset svn:keywords Revision <your file>
to enable expansion of the keyword in your file.
Then, by looking in this file, you can determine which revision is in use.
Christian
On Thu, Sep 11, 2008 at 6:59 PM, Kodak
<Krzysztof.Chodak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi all,
> I want to ask about ideas of rails app versioning. I got app in
> development and want to know version that client is running. I can
> write some version string in application.html to show version...
> Other idea is to find the newest file (its date) in rails app
> directory - it can mark the "last change" of app - can someone
give me
> clues how to do this (find newest filedate in dir incrementally) in
> rails?
> Any other ideas of app versioning? I know that it would be good to
> include revision number from repo like svn...
> BR
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---