Compsci 108, SVN, Aptana
Below posted on the Bulletin Board by Macrae Linton, November 8, copied
here by ola
Creating a SVN Repository and configure
---------------------------------------
1. go to http://code.google.com/hosting
2. if you are not signed into google, sign in or create a new account.
3. Click on "Create a new Project"
4. follow the instructions to create a new project, don't forget to have
summary text or it won't let you create it.
your project can now be found at http://www.google.com/p/yourProjectName
5. Allow your friends to control the code:
a. go to the "Administer" tab and select "Project Members"
b. enter the Google ID's of all your friends, including "@gmail.com" for
gmail names.
c. hit save
Done!
Setting up SVN for use on Aptana
--------------------------------
1. Download and install Aptana
2. Goto Help>Software Update>Find and Install...
3. Select Subclipse and hit finish,
4. keep selecting sublcipse, eventually restart Aptana
Creating a project for use in the SVN Repository
------------------------------------------------
This is what you have to do the first time to set up a project for
everyone to access.
Even if you have begun work on your project I suggest that you create a
new one and then
copy in your existing work. This is the only method I have tested.
1. In Aptana select File>New>Other...
2. Select SVN>Create new project from SVN Repository
3. Select "Create a new repository location", click next
4. The URL is: https://YourProjectName.googlecode.com/svn/
5. Hit next, and permanently accept that certificate from google
6. Your username is your googleID, with "@gmail.com" appended if you are
using gmail
7. your password is NOT your google password, it is assigned for using
SVN and is located at
http://code.google.com/hosting/settings
8. Save your password and click OK
9. Now you are presented with a choice of what folder to check out. the
only way I have done
this is to check out the "trunk" folder, this is what google seems to
recommend but I
must admit that my knowledge of SVN is rather limited, so it is possible
you are losing
some functionality by not selecting the root folder. Let me know if you
have more info.
10. Long story short, select the "trunk" folder and hit next.
11. Select check out as new project from wizard and go through the
wizard to create a new project
including all the libraries of js code you want.
12. Now you have a nice little project sitting in your directory BUT
WAIT!!!! it isn't over!
13. right click on your project file and select Team>Commit...
14. click on the select all button to submit all the files you have
created, and then add a little
note so that your friends know what is up.
15. hit commit
16. Email all your friends the name of the project.
Done!! now you have a project in your subversion repository!
Setting up a project that is already in the repository
------------------------------------------------------
Once your kind teammate has created a project and put it in a SVN
repository, you
will want to get access to that. The first set of instructions should
look very familiar
if you have been reading for completeness.
1. In Aptana select File>New>Other...
2. Select SVN>Create new project from SVN Repository
3. Select "Create a new repository location", click next
4. The URL is: https://YourProjectName.googlecode.com/svn/
5. Hit next, and permanently accept that certificate from google
6. Your username is your googleID, with "@gmail.com" appended if you are
using gmail
7. your password is NOT your google password, it is assigned for using
SVN and is located at
http://code.google.com/hosting/settings
8. Save your password and click OK
9. Now you are presented with a choice of what folder to check out. the
only way I have done
this is to check out the "trunk" folder, this is what google seems to
recommend but I
must admit that my knowledge of SVN is rather limited, so it is possible
you are losing
some functionality by not selecting the root folder. Let me know if you
have more info.
10. Long story short, select the "trunk" folder and hit next.
11. Check out into existing workspace should be selected and the name of
your project should be
in the field. All you should have to do is hit finish.
12. Everything should download and you should have a nice project folder
all set up.
Basic use of SVN repository
---------------------------
To use the repository there are two basic commands I know, all of them
living in the Team
menu
1. Commit...
Once you have written code and want to share it with your partners,
right click on the
project and select Team>Commit... This will let you put your new or
edited files on the
server, make sure and select them when you submit.
2. Update
When you are about to start writing code you right click on the project
and select
Team>Update to download all of the new code your friends have submitted.
In addition to those commands there is also the "Synchronize with
Repository" command that probably does some fancy footwork to take
down new files you don't have and put up files you made but I've
never really used it.
Owen L. Astrachan
Last modified: Thu Nov 8 23:01:34 EST 2007