14
Subversion last minute survival crash course Fazreil Amreen bin Abdul Jalil

Subversion last minute survival crash course

Embed Size (px)

Citation preview

Page 1: Subversion  last minute survival crash course

Subversion

last minute survival crash course

Fazreil Amreen bin Abdul Jalil

Page 2: Subversion  last minute survival crash course

( 2 )

Agenda

• introduction to Versioning System

• SVN as Versioning System

• Tools to do SVN

• SVN features

• Checking out SVN

• Committing into SVN

• Update and Reverts in SVN

• Handling Conflicts (might not be applicable for non-developers)

• Q and A

Page 3: Subversion  last minute survival crash course

( 3 )

• “The Revision Control System (RCS) is a software implementation of revision control that automates the storing, retrieval, logging, identification, and merging of revisions.” –Wikipedia, http://en.wikipedia.org/wiki/Revision_Control_System

• Works like a folder in your computer but with history (versioning)

• Other than SVN, there are also Clearcase, CVS, Git, Mercurial, Team Foundation Server, Visual Source Safe.

• Also known as Change Management.

introduction to Versioning System

Page 4: Subversion  last minute survival crash course

( 4 )

• Works like a folder in your computer but with history (versioning).

• Able to modify the files offline and sync to server when online.

SVN as Versioning System

Page 5: Subversion  last minute survival crash course

( 5 )

• Commonly used SVN client is the Tortoise SVN.

Tools to do SVN

Page 6: Subversion  last minute survival crash course

( 6 )

SVN features

Page 7: Subversion  last minute survival crash course

( 7 )

SVN featuresTo show history of the object

To browse the whole repository

To check working copy for modification made

To update working copy to certain revision

To perform undo

Page 8: Subversion  last minute survival crash course

( 8 )

• Download configuration items from the SVN server for the first time.

1. Open Repo-Browser

2. Right click on directory

3. Check out

4. The configuration item will be downloaded into the selected directory

Checking out SVN

Page 9: Subversion  last minute survival crash course

( 9 )

• Send modified CI back to server

1. Right click on the file / directory

2. click SVN Commit

3. The SVN will open a dialog to preview modifications

4. Enter comment and start committing

Committing into SVN

Page 10: Subversion  last minute survival crash course

( 10 )

• Fetch the latest version from SVN Server.

1. Right click on the directory

2. choose update.

• Fetch specific revision from SVN Server.

1. Right click on the directory

2. Tortoise SVN > Update to revision

• Unmodified files and directories are not affected by the update.

Update and Reverts in SVN

Page 11: Subversion  last minute survival crash course

( 11 )

• Conflict happens when 2 or more commit overlaps the changes made on the same file.

Handling Conflicts

trunk

r

q

p

Working Copy A

Working Copy B

1

2

3

Two working copies were checked out

Modified Working Copy A checked in first

Subversion detects outdated version and prevents check-in

of modified Working Copy BOutdated!

4

s

Page 12: Subversion  last minute survival crash course

( 12 )

• Integrating SVN with other tools makes it easier to for us to perform SVN operations within the tools.

• IDEs like Netbeans, Eclipse has plug-ins to enable integration with SVN.

• Developers need not to move out from the IDE to commit and update their working copy.

• Hudson /Jenkins is taking source codes from SVN, there are plugins to help Hudson/Jenkins.

Beyond SVN, integration to other tools

Page 13: Subversion  last minute survival crash course

( 13 )

• Subversion can store picture, zipfile and audio files?

• Yes. But please avoid storing generated files.

• Can it work on Windows, Mac, and other Linux distros?

• Yes. And each platform has their own client.

• What happen if I screw up my working copy?

• Delete your working copy and create a new one.

• How can I screw up my working copy?

• If you don’t update regularly and having too much conflict that you don’t really want to resolve.

Q and A

Page 14: Subversion  last minute survival crash course

THANK YOU

Emergency Contact:

@fab52facebook.com/fazreil