My favorites | Sign in
Project Logo
                
Search
for
Updated Oct 22, 2008 by larrykluger
How_To_Commit_Code  
Describes the work flow for committing code to SVN.

Introduction

This article describes 2 ways of committing code

Note: to obtain your password for committing code, in this very Google Code project web site, click on the Source tab. It should contain a link to retrieve your generated password.

Using SVN Command Line

Download and install

Check out the code (example for Exhibit project)

Working with the code

New Timeline features

Preparing to commit your changes

That will generate the bundle files. This is important. If you don't do this step, then the bundle files don't contain your latest changes.
That will list files that have changed and files that are new (i.e., not in SVN). New files are shown with "?" in front.
Note that adding a new directory automatically adds its files.

Committing your changes

Using Eclipse

Download and install

Adding a new Subversion repository location:

  • In Eclipse, invoke menu Window -> Show View -> Other, select SVN -> SVN Repository, and click OK. You should then see the SVN Repository view in the Eclipse window.
  • Right-click anywhere inside the SVN Repository view and choose New -> Repository Location...
  • Enter https://simile-widgets.googlecode.com/svn/ for the Url field and click Finish.

Checking out the code (example for Exhibit):

  • In the SVN Repository view, expand the https://simile-widgets.googlecode.com/svn/ location, then find "exhibit", and expand it.
  • Right-click on "trunk" in "exhibit" and choose Checkout... Go through that process; it should be straightforward.

Working with the code:

  • make changes to the code, test locally, etc.
  • inside the "exhibit" directory, run
  • ant
That should generate the bundle files. This is important. If you don't do this step, then the bundle files don't contain your latest changes.

Preparing to commit the code:

  • In Eclipse, in the Package Explorer view or the Navigator view, right-click on the "exhibit" project and choose Refresh. This makes sure Eclipse is updated with all the changes you made to the code in external editors.
  • I'd also recommend right-clicking on the "exhibit" project and invoke Team -> Update... This would get the latest code out (that other people checked in) and alert you to any merge conflicts.
  • Right-click on the "exhibit" project and invoke Team -> Commit... and remember to provide a comment describing the changes you made. As noted above, please prepend the comment with the project name. Eg "TIMELINE: added x feature" or "EXHIBIT: fixed y bug" Thanks.


Sign in to add a comment
Hosted by Google Code