This class uses Subversion (SVN), a version-control system for multi-person projects. We do not require all of SVN's functionality in this course; it just serves as a homework depository. To turn an assignment in, you will post ("up-load") a local copy of your work SVN.
You will need to conform to a standard file organization for the homework, but you may also create additional directories for maintaining other activities relating to the course, such as presentations.
class/fall10
For each participant, there is a password-protected subdirectory class/fall10/logid/
, where logid
is your IU network ID (for instance, mine would
be sjohnson
).
class/logid/
is initialized with subdirectories
lab/1/
through
lab/5/
for laboratory assignments,
share/
for files you wish to share with the rest of the class,
and
project/
for your final project. You are free to add other directories and
subdirectories.
Note: Lab assignment
number n must be deposited in sub-directory
class/fall10/logid/lab/n
|
For a typical P545 assignment, you should post
svn add file
,
or svn add directory
, respectively.
svn delete file
,
or svn delete directory
, respectively.
svn ci -m "your message here" file
There are on-line SVN user manuals on the web [HTM]. Chapter 2 (Basic Usage) covers the commands we need. In fact, the example that follows is adequate for posting homework.
https
.
You will be prompted for your password, which is initially p545user
svn co url dir
.
Argument dir
is the name of astudent's
local directory.
% svn co https://www.cs.indiana.edu/svn/bhimebau/embedded_systems/class/fall10/astudent/ my-svn-working-copy A p545/lab A p545/public Checked out revision 999.
% cd my-svn-working-copy % ls % lab/ public/ % cd lab % ls 0 1 2 3 4 5
svn add
command.
% cp somewhere/newcomponent.py 1/component.py % svn add 1/component.py A 1/component.py
svn ci -m "message" file
.
The -m message
option deposits a
message with the update.
% svn commit -m "Homework 1 Complete" 1/ Adding lab/1/component.py Transmitting file data .. Committed revision 1000.
class/fall10/loginID/*
through your browser.