bluej version control tools

19
Bluej Version Control Tools By Steven Campbell and Erik Boone

Upload: vida

Post on 24-Feb-2016

64 views

Category:

Documents


0 download

DESCRIPTION

Bluej Version Control Tools. By Steven Campbell and Erik Boone. Bluej Version Control Capabilities. Sharing projects by putting them into a central repository. Checking out copies of projects from the repository Updating local copies Committing local changes to the repository version - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Bluej  Version Control Tools

Bluej Version Control Tools

By Steven Campbell and Erik Boone

Page 2: Bluej  Version Control Tools

Sharing projects by putting them into a central repository.

Checking out copies of projects from the repository

Updating local copies Committing local changes to the repository

version Handling merge conflicts Providing projects status queries Viewing the projects history/log.

Bluej Version Control Capabilities

Page 3: Bluej  Version Control Tools

Version control is defined as teamwork to the students.

“The teamwork features are implemented over the top of two existing systems, the Concurrent Versioning System (CVS) and (since BlueJ 2.5.0) Subversion. Our aim is to expose students to general version control concepts without exposing them specifically to the inner workings of CVS or Subversion any more than is necessary.”

Teamwork!

Page 4: Bluej  Version Control Tools

Go to Tools> Preferences >Miscellaneous Tab

Then in the Optional tool settings click the “Show teamwork controls”

Enable Teamwork

Page 5: Bluej  Version Control Tools
Page 6: Bluej  Version Control Tools

To share a project go to Tools > Team > Share this Project

Then the Teamwork Settings Dialog will open (unless already connected to a repository server).

Sharing a project

Page 7: Bluej  Version Control Tools
Page 8: Bluej  Version Control Tools

User Name: account name for the Repository server.

Password: password for the repository server for the account.

Group: (optional): If the instructor wants to make groups who only have access to their repositories.

Server type: Type of version control software (CVS or Subversion).

Server: Name or IP address of the server. Repository Path: The file path to the

repository on the server.

Page 9: Bluej  Version Control Tools

To check out a project go to Tools > Team > Checkout Project

Then the Checkout dialog box will appear (if connected).

After selecting the project, then you choose the file location on your computer.

Checking out a Project

Page 10: Bluej  Version Control Tools

In the main window, click on status to see the status of the project.

Green - There has been a change to that file (either locally or from other team members.

Blue – you do not have the file. Black – your version is up to date.

Checking the status of the Project

Page 11: Bluej  Version Control Tools

In the main window just click the update button. This dialog will show and displays which files will

be updated. Click update to update your local Files

Updating your Local version

Page 12: Bluej  Version Control Tools

After making any changes of the files Click on Commit in the main window -->

Add a comment about the changes and click commit to add your changes to the repository.

Committing your Changes

Page 13: Bluej  Version Control Tools

In the main window go to Tools > Team > Show Project History

You cannot go to previous version, but you can filter the changes based on who did the changes or by certain files.

View the Project History

Page 14: Bluej  Version Control Tools

Conflicts occur while updating your local project.

Have to delete (manually) the extra characters in order to fix the conflicts.

Resolving Conflicts

Page 15: Bluej  Version Control Tools

Need CVS Server Software – “CVSNT” http://www.cvsnt.org.

Setting Up Repository Server

Page 16: Bluej  Version Control Tools

Set up the repository in the control panel by going to Start / Programs / CVSNT / CVSNT control panel and the “Repository Configuration” tab.

Press the “add” button to allow you to choose your directory.

Creating the Server

Page 17: Bluej  Version Control Tools

In the location section on the popup window put your repository path.

Also place the original name of your repository in the name section and hit OK.

When asked whether CVSNT should initialize the location as a repository, select yes.

Your repository server is now created and should show up Under your server name and can be used by bluej.

Creating a Server Cont.

Page 18: Bluej  Version Control Tools

A server has to be running 24/7 if the students want to be able to work from home. (services like Google Code and bitbucket host TortoiseHg, so the instructors do not need to make their own server)

Someone with administrative access will have to set up the server if he/she wants it on campus, AND will either have to let anyone have access to the server, or add each individual student to the server. (again bitbucket and Google Code it is easy to set up an online repository)

Can only view the revision history instead of being able to go back to a previous version (which TortoiseHg does).

Problems with Teamwork