Beginning Eclipse CVS - Branching: Work continues in the Trunk
October 11, 2009
Tutorials | CVS | Web Building

<= Back to previous section "Work in the branch





Continue reading below break...






Ads by Google

Posted by ellen at October 11, 2009 06:15 PM
  1. Option 1: A second person is playing Wing. You ("Wing") are starting fresh, so you will need to import the HEAD files into a new, empty workspace. Right-click in the white area in the Project Explorer, and select Import.

    Image



  2. Select CVS >Projects from CVS and click Next.

    Image




  3. Select the CVS repository you want to use from the list and click Next.

    Image




  4. It will ask you to choose a workspace. If you do not already have a workspace directory to use, you can create one now.

    Image




  5. Check the project out as brtest, selecting Checkout subfolders and click Next.

    Image




  6. Select HEAD from the list of tags. Click Finish. Now go to your next step and continue

    Image




  7. Option 2 starts here: If you started as "Paul" you already have a workspace with a project in it. Replace the files in your workspace with those of the HEAD by selecting Team > Switch to Another Branch or Version. This replaces the resources in your workspace with those on the tag you specify in the next step.





  8. Select HEAD from the list of tags. Click Finish.





  9. You should now see a new brtest folder in your Project Explorer. There will be no branch listed to the right of the folder name, indicating that you are NOT working in a branch with respect to this project.




  10. Now we'll start editing files as "Wing." First we'll edit a file that will only be edited by Wing. Open f2.txt. (The file f1.text is only going to be edited by Paul)




  11. Change line 3 to read "This line changed by Wing in iter1." Save the change. A ">" will be added beside f2.txt




  12. Open f3trivial.txt. This file will be edited by both Paul and Wing, but on separate lines, only. Change line 9 to "This line changed by Wing in iter1." Save the change.



  13. Open f4conflict.txt. This file will be edited by both Paul and Wing on the same line. Change line 3 to "This line changed by Wing in iter1." Save the file.





  14. Commit all these changes. Right-click the project folder and select Team > Commit



  15. Add a comment: "First iteration changes by Wing."





  16. The version numbers will remain 2 digit numbers because the changes were made on the trunk.




  17. Right-click the brtest folder and select Team > Tag as Version...


  18. Enter the name W1.



    We're now here in the flowchart:




Continue to next section "Merge changes back to the Trunk" =>







Ads by Google


Ads by Google

 RSS   |   Contact Me


Ads by Google