#!/bin/ksh

set -x

# Clean up from previous test
cd
rm -rf repo test-repo

# Create the repository
mkdir repo
svnadmin create ~/repo/test-repo

# Create a wroking copy
svn co file:///home/gtroccol/repo/test-repo ~/test-repo
cd ~/test-repo

# Add 2 files
echo file1 > file1
echo file2 > file2
svn add file1 file2
svn ci -m"Adding file1 and file2"
svn up

# Lock the files
svn lock file1
svn lock file2

# Modify only file1
echo "new line" >> file1

# Show the status
svn st

# Commit changes to file 1
svn ci -m"Adding a new line to file1"

# file2 is not locked
svn st
