Sonny Gauran
|
Posted: September 08, 2009 15:00 by Sonny Gauran
|
|
Our (subversion/svn) repository is located at https://kenai.com/svn/ici-cecsd-java~sandbox Check Out To checkout a copy to have your own working copy, you do this by opening a command-line: Start> Run> cmd Here, this usually starts at your desktop username directory like: C:\Documents and Settings\desktopUsername> Now change to the directory you want to put your working copy. For example, going to the Desktop: C:\Documents and Settings\desktopUsername>cd Desktop From here, you can checkout a copy of the repository by: C:\Documents and Settings\desktopUsername\Desktop>svn co https://kenai.com/svn/ici-cecsd-java~sandbox icj~s Take note of the icj~s part. This will be the folder name on the Desktop containing the repository. In this folder, the icj~s on the Desktop, will contain all the files and folders in the repository, with at it's root are three files:
Over the next meetings and activities outside the classroom, you will be committing (saving) your work inside the the /project folder, inside your corresponding kenai usernames. NEVER EVER Commit code at the repository root / location. Now that you know how to checkout code using the command line, you'll be copying the exercise at your own folder via subversion, and then check-out a working copy before you start working on the exercise. NEVER EVER Commit code at the /exercises folder. Always Copy Then CheckOut before Commit. Copy, CheckOut, and then Commit First of all, Copy. To copy the exercise to your project folder: C:\Documents and Settings\desktopUsername>svn copy https://kenai.com/svn/ici-cecsd-java~sandbox/exercises/ObjectTest1 https://kenai.com/svn/ici-cecsd-java~sandbox/project/sonnygauran -m "Created a branch of ObjectTest1 at /project/sonnygauran" In this line, I've copied the /exercises/ObjectTest1 to /project/sonnygauran via subversion and also added a message "Created a branch of ObjectTest1 at /project/sonnygauran" Just follow how the command is done. Replace your kenai usernames and exercise names that you want appropriately. NEVER EVER Commit code without any description/message log. Second, CheckOut. Like at the beginning of this post, checking out is done similarly, except you don't checkout the root location / of the repository. You checkout your project folder in /project. On your Desktop, or anywhere you want to checkout: C:\Documents and Settings\desktopUsername\Desktop>svn co https://kenai.com/svn/ici-cecsd-java~sandbox/project/kenaiUsername icj~s~kenaiUsername If I were to execute this line, this would checkout /project/sonnygauran at the Desktop inside a folder named icj~s~sonnygauran. Now you can open the project from your working copy with Netbeans. NEVER EVER Commit code on anybody elses folder unless they gave you explicit permission to do so - or you just wanna mess/fix their code up. Thirdly, Commit: Commit your code inside your own project folders. In subversion, these are called branches. Like a branch on a tree, branches comes from a certain trunk. Your project folders are branches of the (trunk) exercise folders. You can do this via netbeans instead. Right-click the project ObjectTest1:Subversion > Commit And then input your message log, and then Commit. |
Working with Subversion and our project repository
Replies: 1 - Last Post: September 09, 2009 02:37
by: Sonny Gauran
by: Sonny Gauran
showing 1 - 2 of 2
Sonny Gauran
|
Posted: September 09, 2009 02:37 by Sonny Gauran
|
Nice work there, cban2000. @r20
|
Replies: 1 - Last Post: September 09, 2009 02:37
by: Sonny Gauran
by: Sonny Gauran

Right-click the project ObjectTest1:





