Let's consider a scenario:
You have using eclipse for developing a project. One day, since you would like to store it to repository for better version management, you have submit it to SVN repository through TortoiseSVN.
After that, you continue to develop the project on Eclipse for a while of period. One day, you would like to have a full picture of what files are created / deleted, what files are editted and what is the difference between the version from last check-in.
However, the project on Eclipse is not yet linked to the SVN repository which you cannot make a good use of "file difference" provided by Eclipse's version management plugin (e.g. subclipse). What should you do for achieving this purpose?
You can follow the steps below for linking the Eclipse project to the target SVN repository.
Pre-requisite
Eclipse has installed version control plugin. Here we use Subclipse 1.10.13 as an example (It could be found through the "Help" > "Eclipse Marketplace..." on the menu bar )
Steps
- Right click on the project >> "Team" >> "Share Project.."

- Highlight "SVN" >> "Next"

- Select "Create a new repository location" >> "Next"

- Fill in the "Url" field >> "Next"

- Select "Use project name as folder name" (It would instruct SVN to create a folder on the respository path which is the same as your Eclipse project's name) >> "Next"

- If your project has already been uploaded to the indicated repository path previously, the following warning / reminder will be prompted. Simply click "Yes" to acknowledge it for establishing the linkage. (All your changes won't be affected)


- "Yes" to open the "Synchronize View" for viewing the changed files difference (also to verify the previous steps are performed correctly)

- You should now able to see the difference of edit files or figures which files are newly created / deleted!


The above steps should also be applicable for projects you copied from other machines but which are preferred to be synchronized to the same respository path.
Remark
The software / plugins version being used here are:
- Eclipse Java EE IDE for Web Developers. Version: Mars Release (4.5.0)
- Subclipse 1.10.13
沒有留言:
張貼留言