Wikinews:Tech/Eclipse SVN
This page is no longer current and/or valid. It is kept for historical record or interest. Do not assume content on this page is still technically correct.
If the information contained on this page becomes timely again, please remove this tag. |
How to setup Eclipse to use SVN
How to
edit- Eclipse
- Help
- Install new software
- Work with "Galileo"
- Search for 'SVN'
- Check "Subversive SVN Team Provider"
- Next
- Finish
- Eclipse will ask you to restart, do so
- When it comes back, it will request you to install from a list of 6 packages. Install the latest version of each (there are different bits)
- Restart Eclipse Again
Checking out a project
editThis only needs to be done the first time you work on a project
- In Eclipse: Project
- SVN
- Project from SVN
- Create a new Repo
- URL: https://enwikinews.googlecode.com/svn/
- Username: Generally your username (@gmail) - check http://code.google.com/p/enwikinews/source/checkout
- Password: This is NOT your normal password. Get your password from: https://code.google.com/hosting/settings
- Next
- URL will default the the same as the previous screen
- Browse
- [PROJECTNAME]/Trunk
- Finish
- On the 'Check Out As' screen
- Select "Check out as a project with the name specified"
- Put in the project name (EX "WikinewsReader")
- Next
- Default workspace location & working set
- Finish
How to get Latest
editEvery day, before you start, you need to update yourself to the latest code base
- Open Eclipse & the project (Ex from above "WikinewsReader")
- Right click on the project (in Package explorer)
- Team
- Update
What to do if you add a new file
editIf you add a new file, you need to instruct SVN to add it to the project
- Right click on the new file (in Package explorer)
- Team
- Add to version control
- OK
How to check in your changes
editAt the end of the day, or when you're at a good stable point, you need to check in the code. Please don't checkin code that doesn't compile unless you ABSOLUTELY have to, and are getting someone elses help promptly to fix it.
- Right click on the project (in Package explorer)
- Team
- Commit
- Enter a comment. Include any bugs you're fixing (And their number, if from the issue tracker) along with a basic desc of your changes (or any new features).
- Hit OK
Important note: DO NOT check in /gen/ or /bin/ (If SVN tries to, cancel out > right click on the folder in the project view > Add to SVN:Ignore )