Skip to Main Content
Professional Ruby on Rails™
book

Professional Ruby on Rails™

by Noel Rappin
February 2008
Intermediate to advanced content levelIntermediate to advanced
479 pages
14h
English
Wrox
Content preview from Professional Ruby on Rails™

2.4. The Repository Life Cycle

Now that you have your repository, you need to keep it up to date. Any changes you make to your local copy of the code need to be registered back to the Subversion server before other developers can see it and the change can be assigned a revision tag.

2.4.1. Committing Normal Code Changes

Most of the time, the changes that you make to your code will simply involve changing text within an existing file. As you've seen, the svn commit command causes all of the changes in your local copy to be sent to the server. Subversion requires you to add a short message to the commit, describing the change by using the -m flag, as in svn commit -m "I fixed that really hairy bug. Hooray for me". If you don't include a descriptive message, Subversion will try to launch your system's default editor for you to type one in.

If you've lost track of the revisions you've made since your last commit, you can get a handy list by using the svn status command as follows:

$ svn status ? edge_update.sh ? soupsonline.tmproj M test/unit/ingredient_test.rb M test/functional/ingredients_controller_test.rb M test/functional/recipes_controller_test.rb M app/controllers/ingredients_controller.rb M app/views/recipes/show.html.erb ? app/views/ingredients/remote_update.html.erb M app/views/ingredients/remote_edit.html.erb ? db/schema.rb X vendor/rails ? public/images/spacer.gif ? public/images/img10.gif ? public/images/img01.gif ? public/images/img11.gif ? public/images/img02.gif ? ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ruby on Rails® Bible

Ruby on Rails® Bible

Timothy Fisher
Rails 4 in Action

Rails 4 in Action

Yehuda Katz, Rebecca Skinner, Stephen Klabnik, Ryan Bigg

Publisher Resources

ISBN: 9780470223888Purchase book