Fall 2007 CSci 553 Lab 2

Exercise 2.1

$ ssh nisl

$ passwd

$ htpasswd /etc/svn-auth-file username

$ svn co http://nisl.tamu-commerce.edu/repo/csci553/username labs


Exercise 2.2


Exercise 2.3


Exercise 2.4

$ cd ~

$ mkdir tmplabs

$ cd tmplabs

$ svn co http://nisl.tamu-commerce.edu/repo/csci553/username labs


a) Create Blue/lab02/planets.txt, and add the following lines:


Mercury

Venus

Earth

Mars

Jupiter

Saturn


Commit the file.

b) Update the Green repository. (You should get a copy of planets.txt.)

c) Change Blue/lab02/planets.txt so that it reads:


1. Mercury

2. Venus

3. Earth

4. Mars

5. Jupiter

6. Saturn


Commit the changes.


d) Edit Green/lab02/planets.txt so that its contents are as shown below. Do not do svn update before editing this file, as that will spoil the exercise.


Mercury 0

Venus 0

Earth 1

Mars 2

Jupiter 16 (and counting)

Saturn 14 (and counting)


e) Now, in Green, do svn update. Subversion should tell you that there are conflicts in planets.txt. Resolve the conflicts so that the file contains:


1. Mercury 0

2. Venus 0

3. Earth 1

4. Mars 2

5. Jupiter 16

6. Saturn 14


Commit the changes (hint also need svn resolve).


f) Update the Blue repository, and check that planets.txt now has the same content as it has in the Green repository.


Exercise 2.5