Your instructor runs the following command at the beginning of each class: script shell-logs/`date | sed "s/ /_/g"` The resulting log is taken and edited to remove escape characters, which may introduce some errors. The result should be a fairly faithful reproduction of the shell output from class ------------------------------------------------------ Script started on Wed 15 Nov 2006 02:26:16 PM PST Kbash-3.1$ cd lectures/lecture18/ bash-3.1$ ls hw4-solution bash-3.1$ ls hw4-solution bash-3.1$ ls hw4-solution/ allocreclist.c allocreclist.h heap.c heap.h heaptest.c bash-3.1$ pwd /homes/iws/rcdavis/lectures/lecture18 bash-3.1$ svnadmin create repos bash-3.1$ ls hw4-solution repos bash-3.1$ ls -l total 0 drwxr-xr-x 2 rcdavis grad_cs 91 Nov 15 11:43 hw4-solution drwxr-xr-x 7 rcdavis grad_cs 90 Nov 15 14:46 repos bash-3.1$ ls repos/ conf dav db format hooks locks README.txt bash-3.1$ ls hw4-solution repos bash-3.1$ cd hw4-solution/ bash-3.1$ ls allocreclist.c allocreclist.h heap.c heap.h heaptest.c bash-3.1$ svn import file:///homes/iws/rcdavis/lectures/lecture18/repos/hw4 svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no 'editor-cmd' run-time configuration option was found bash-3.1$ svn import file:///homes/iws/rcdavis/lectures/lecture18/repos/hw4 -m "Initial Import" Adding allocreclist.c Adding heap.h Adding allocreclist.h Adding heap.c Adding heaptest.c Committed revision 1. bash-3.1$ ls allocreclist.c allocreclist.h heap.c heap.h heaptest.c bash-3.1$ lsl -a bash: lsl: command not found bash-3.1$ ls -a . .. allocreclist.c allocreclist.h heap.c heap.h heaptest.c bash-3.1$ cd .. bash-3.1$ ls -a . .. hw4-solution repos bash-3.1$ rm -r hw4-solution/ bash-3.1$ ls repos bash-3.1$ svn checkout file:///homes/iws/rcdavis/lectures/lecture18/repos/hw4 A hw4/allocreclist.c A hw4/heap.h A hw4/allocreclist.h A hw4/heap.c A hw4/heaptest.c Checked out revision 1. bash-3.1$ ls hw4 repos bash-3.1$ ls hw4/ allocreclist.c allocreclist.h heap.c heap.h heaptest.c bash-3.1$ ls -a hw4 . .. allocreclist.c allocreclist.h heap.c heap.h heaptest.c .svn bash-3.1$ ls hw4/.svn empty-file entries format prop-base props README.txt text-base tmp wcprops bash-3.1$ ls hw4 repos bash-3.1$ svn checkout file:///homes/iws/rcdavis/lectures/lecture18/repos/hw4 hw4B A hw4B/allocreclist.c A hw4B/heap.h A hw4B/allocreclist.h A hw4B/heap.c A hw4B/heaptest.c Checked out revision 1. bash-3.1$ ls hw4 hw4B repos bash-3.1$ cd hw4 bash-3.1$ svn status M heaptest.c bash-3.1$ svn diff heaptest.c Index: heaptest.c =================================================================== --- heaptest.c (revision 1) +++ heaptest.c (working copy) @@ -3,7 +3,7 @@ #include #include "heap.h" -#define STRING_SIZE 128 +#define STRING_SIZE 256 int main(int argc, char *argv[]) { bash-3.1$ svn commit -m "Changed STRING_SIZE to 256" Sending heaptest.c Transmitting file data . Committed revision 2. bash-3.1$ cd ../hw4B bash-3.1$ svn status bash-3.1$ svn diff bash-3.1$ bash-3.1$ svn status M heaptest.c bash-3.1$ svn diff Index: heaptest.c =================================================================== --- heaptest.c (revision 1) +++ heaptest.c (working copy) @@ -4,6 +4,7 @@ #include "heap.h" #define STRING_SIZE 128 +#define CONSTANT 4 int main(int argc, char *argv[]) { bash-3.1$ svn commit -m "Added CONSTANT" Sending heaptest.c svn: Commit failed (details follow): svn: Out of date: '/hw4/heaptest.c' in transaction '2-1' bash-3.1$ svn update G heaptest.c Updated to revision 2. bash-3.1$ svn commit -m "Added CONSTANT" Sending heaptest.c Transmitting file data . Committed revision 3. bash-3.1$ cd ../hw4 bash-3.1$ svn commit -m "Added CONSTANT #2" Sending heaptest.c svn: Commit failed (details follow): svn: Out of date: '/hw4/heaptest.c' in transaction '3-1' bash-3.1$ svn update C heaptest.c Updated to revision 3. bash-3.1$ ls allocreclist.c heap.c heaptest.c heaptest.c.mine heaptest.c.r3 allocreclist.h heap.h heaptest.c~ heaptest.c.r2 bash-3.1$ svn resolved heaptest.c Resolved conflicted state of 'heaptest.c' bash-3.1$ ls allocreclist.c allocreclist.h heap.c heap.h heaptest.c heaptest.c~ bash-3.1$ svn commit -m "Added MY CONSTANT DAMNIT!" bash: !": event not found bash-3.1$ svn commit -m "Added Constant #3" Sending heaptest.c Transmitting file data . Committed revision 4. bash-3.1$ svn lot Unknown command: 'lot' Type 'svn help' for usage. bash-3.1$ svn log ------------------------------------------------------------------------ r3 | rcdavis | 2006-11-15 15:13:54 -0800 (Wed, 15 Nov 2006) | 1 line Added CONSTANT ------------------------------------------------------------------------ r2 | rcdavis | 2006-11-15 15:04:35 -0800 (Wed, 15 Nov 2006) | 1 line Changed STRING_SIZE to 256 ------------------------------------------------------------------------ r1 | rcdavis | 2006-11-15 14:52:41 -0800 (Wed, 15 Nov 2006) | 1 line Initial Import ------------------------------------------------------------------------ bash-3.1$ svn log heaptest.c ------------------------------------------------------------------------ r4 | rcdavis | 2006-11-15 15:18:06 -0800 (Wed, 15 Nov 2006) | 1 line Added Constant #3 ------------------------------------------------------------------------ r3 | rcdavis | 2006-11-15 15:13:54 -0800 (Wed, 15 Nov 2006) | 1 line Added CONSTANT ------------------------------------------------------------------------ r2 | rcdavis | 2006-11-15 15:04:35 -0800 (Wed, 15 Nov 2006) | 1 line Changed STRING_SIZE to 256 ------------------------------------------------------------------------ r1 | rcdavis | 2006-11-15 14:52:41 -0800 (Wed, 15 Nov 2006) | 1 line Initial Import ------------------------------------------------------------------------ bash-3.1$ bash-3.1$ bash-3.1$ cat >readme.txt Hello! bash-3.1$ svn status ? readme.txt bash-3.1$ svn add readme.txt A readme.txt bash-3.1$ svn commit -m "Added readme.txt" Adding readme.txt Transmitting file data . Committed revision 5. bash-3.1$ exit Script done on Wed 15 Nov 2006 03:22:52 PM PST