Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
titleTabs are Evil

As a general rule, tabs should never be used in any files within the SVN.  Mixing tabs and spaces creates a formatting mess.  And tabs may appear differently depending on how someone has their editor configured (e.g. tab indentation could be 4 or 8 spaces).  For these reasons, we stick to a rule of spaces only in all source code.

Subversion

An extensive set of Subversion commands are available under the Team sub-menu when you right click on a Java file or package in the project.

To update a file to its current version in the trunk, you can select Team > Update.

To commit a file or select of files, you can use Team > Commit.

Warning
titleUsing Team Commit from Eclipse

Using Eclipse to commit files can be convenient.  But you need to very careful about this.  When you select commit, Eclipse will show a window with the list of files to be committed.  Make absolutely sure that this list only contains the files which you actually want included into the commit.  By default, when executing a commit from a project without any files selected, Eclipse will add every file which is not in the global ignore list to the commit.  You absolutely do not want this.  So if there is a huge list of files there, then click cancel and execute the command only with the correct files selected.  Or you may uncheck the boxes next to files which should not be committed.

Editor Configuration

You should also setup some of the other editors in Eclipse to use spaces instead of tabs.

...