Changes between Initial Version and Version 1 of GettingStarted


Ignore:
Timestamp:
09/07/11 15:15:41 (3 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GettingStarted

    v1 v1  
     1= New Developers = 
     2 
     3Welcome, new developer!  This page will help you get started using this site to help us develop Workspace (64 bit). 
     4 
     5== Getting the Code == 
     6 
     7First step is to download the Workspace (64 bit) development code.  To do this, you'll need [http://subversion.tigris.org/ Subversion], an open source version control system.  You can [http://subversion.tigris.org/project_packages.html download Subversion] for all major platforms, including Linux, Windows, and MacOSX.  If you're working on Windows, the [http://tortoisesvn.tigris.org/ Tortoise SVN] package is particularly slick.  It lets you control SVN functions via right-click menus as you navigate the file system.  Subversion is similar to [https://www.cvshome.org/ CVS], so if you've used that before, you'll feel right at home. 
     8 
     9If you're just getting started with Subversion, check out [http://www.nanohub.org/resources/3061 this tutorial] on nanoHUB. 
     10 
     11Once Subversion is installed, you can download Workspace (64 bit) as follows: 
     12{{{ 
     13% svn checkout https://nanohub.org/tools/workspace64/svn/trunk workspace64 
     14}}} 
     15 
     16The {{{checkout}}} command makes a local copy of the entire Workspace (64 bit) source tree into your current working directory as a subdirectory called {{{workspace64}}}.  By requesting {{{.../workspace64/svn/trunk}}}, you get the main development trunk, which should have the latest stable code. 
     17 
     18== Making Changes == 
     19 
     20Once you've downloaded the code, you can make whatever changes you like.  For example, you might edit a file to fix a bug or add some code.  To make your changes permanent, you must {{{commit}}} them to the repository as follows: 
     21{{{ 
     22% cd workspace64 
     23% svn commit --message "fixed my first bug!" 
     24}}} 
     25You don't have to include the optional {{{--message}}} argument.  If you just say {{{svn commit}}}, Subversion will prompt you for comments in your favorite editor, and you can type much more. 
     26 
     27It's best to commit at the top of the source tree--that's why we said "{{{cd workspace64}}}" in the example above.  When you commit at the top of the tree, Subversion will search everything below, find all files that have changed, and commit them all at once.  Committing a change makes it permanent.  Once committed, other developers will see the change.  If for some reason, you want to throw away your changes and start fresh, you can simply remove your source tree and check it out all over again.  Or, you may want to remove just a few files that you've modified, and then {{{update}}} (as we'll see below) to replace the missing files with their previous version. 
     28 
     29If you want to add a new file or directory to your distribution, you can use the {{{add}}} command: 
     30{{{ 
     31% svn add README.txt 
     32% svn commit 
     33}}} 
     34Like any other change, the file is not really added until the next {{{commit}}} operation. 
     35 
     36Similarly, if you want to remove a file or directory from your distribution, you can use the {{{delete}}} command: 
     37{{{ 
     38% svn delete README.txt 
     39% svn commit 
     40}}} 
     41Once the change is committed, the file will disappear.  The file is still kept in the history, so it is not completely gone.  But deleting the file will take it out of your way at least for this and future versions. 
     42 
     43From time to time, you and another developer will modify the same file at the same time.  Suppose the other developer checks in his changes first.  When you try to commit, you'll get an error saying that your file is out-of-date.  In that case, you need to {{{update}}} before committing.  You can do that as follows: 
     44{{{ 
     45% cd workspace64 
     46% svn update 
     47}}} 
     48It's best to update at the top of the source tree--just like commit.  That's why we said "{{{cd workspace64}}}" in the example above.  When you update at the top of the tree, Subversion will search everything below, adding any new files, replacing any missing files, and integrating changes made by other developers.  Once all files are properly updated, you can commit your changes again, and this time, it will work.