Two simple tips for freezing your rails

On the forum today Deirdre and Jordan reminded everyone of two easy and up to date tips for freezin’ your Rails.

Deirdre’s (from inside a working copy of your rails app)


$ export EDITOR=vi (or your editor of choice)
$ svn propedit svn:externals vendor

The contents should be


rails http://dev.rubyonrails.org/svn/rails/tags/rel_1-0-0/

Then commit it!


$ svn commit -m "Freezing to 1.0"

And you can go off to where it’s running from and svn update it.

Jordan’s (to freeze to 1.0)


$ rake freeze_edge REVISION=3303

·:· Posted 29 March 2006, 04:12 by Jason Hoffman to Rails  |  

  1. Don’t need no stinkin’ editor:

    svn ps svn:externals “rails http://dev.rubyonrails.org/svn/rails/tags/rel_1-0-0/” vendor

    (will override other externals in vendor, but if you have them, then you wouldn’t need this tip)

    Caio Chassot    29 March 2006, 04:38    #
  2. You can even freeze an external to the revision just before DHH stole one of your model names like so:

    rails -r3837 http://dev.rubyonrails.org/svn/rails/trunk

    I’m still steaming mad ;)

    kjell    29 March 2006, 05:13    #
  3. Well hey, how do you un-freeze your app??

    Raymond Brigleb    29 March 2006, 16:10    #
  4. rake unfreeze_rails

    jason Hoffman    29 March 2006, 16:14    #
  5. Come on, guys—you have to get hip to the new namespaced rake tasks in 1.1 ;-)

    rake rails:freeze:edge
    rake rails:unfreeze

    Packagethief    29 March 2006, 20:12    #
  6. Typo is now compatible with Rails 1.1 [977].

    schwarz    30 March 2006, 23:30    #