[MacRuby] #173: Need to expose the SVN revision number as a constant
#173: Need to expose the SVN revision number as a constant -----------------------------------+---------------------------------------- Reporter: lsansonetti@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: -----------------------------------+---------------------------------------- It would be great for debugging purposes to expose the SVN revision number as a constant in !MacRuby. Maybe {{{MACRUBY_REVISION}}}. -- Ticket URL: <http://www.macruby.org/trac/ticket/173> MacRuby <http://macruby.org/>
#173: Need to expose the SVN revision number as a constant -----------------------------------+---------------------------------------- Reporter: lsansonetti@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: -----------------------------------+---------------------------------------- Comment(by self@…): One thing to keep in mind is that if you ever move to a VCS like Git (although this issue is not exclusive to Git) you lose the concept of a "revision number". For example Git commits are identified by a hash. -- Ticket URL: <http://www.macruby.org/trac/ticket/173#comment:1> MacRuby <http://macruby.org/>
#173: Need to expose the SVN revision number as a constant -----------------------------------+---------------------------------------- Reporter: lsansonetti@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.4 Component: MacRuby | Resolution: fixed Keywords: | -----------------------------------+---------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 1.0 => MacRuby 0.4 Comment: A patch was contributed by Vincent Isambart that implements this feature. It works for both SVN and Git. {{{ $ ./miniruby -e "p MACRUBY_REVISION" "svn revision 745 from http://svn.macosforge.org/repository/ruby/MacRuby/trunk" }}} It has been committed as r766. -- Ticket URL: <http://www.macruby.org/trac/ticket/173#comment:2> MacRuby <http://macruby.org/>
#173: Need to expose the SVN revision number as a constant -----------------------------------+---------------------------------------- Reporter: lsansonetti@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: blocker | Milestone: MacRuby 0.4 Component: MacRuby | Resolution: Keywords: | -----------------------------------+---------------------------------------- Changes (by lsansonetti@…): * status: closed => reopened * resolution: fixed => Comment: Looking more carefully, looks like the revision number is not the latest one. I pinged Vincent. Re-opening the ticket. -- Ticket URL: <http://www.macruby.org/trac/ticket/173#comment:3> MacRuby <http://macruby.org/>
#173: Need to expose the SVN revision number as a constant -----------------------------------+---------------------------------------- Reporter: lsansonetti@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.4 Component: MacRuby | Resolution: fixed Keywords: | -----------------------------------+---------------------------------------- Changes (by lsansonetti@…): * status: reopened => closed * resolution: => fixed Comment: Forgot to do "svn update", mea culpa :-) -- Ticket URL: <http://www.macruby.org/trac/ticket/173#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby