分类: LINUX
2006-03-22 20:27:31
[WORK] data # svnadmin create /data/svn/test [WORK] data # ls /data/svn/test/ conf dav db format hooks locks README.txt |
[WORK] data # ls -lR /data/exam/ /data/exam/: 总计 0 drwxr-xr-x 2 root root 48 03-22 20:14 branches drwxr-xr-x 2 root root 48 03-22 20:14 tags drwxr-xr-x 2 root root 120 03-22 20:14 trunk /data/exam/branches: 总计 0 /data/exam/tags: 总计 0 /data/exam/trunk: 总计 12 -rw-r--r-- 1 root root 101 03-22 19:54 Makefile -rw-r--r-- 1 root root 129 03-22 19:50 test.c -rw-r--r-- 1 root root 25 03-22 19:50 test.h |
[WORK] data # svn import /data/exam/ file:///data/svn/test/exam -m "A new test project" 新增 /data/exam/trunk 新增 /data/exam/trunk/test.c 新增 /data/exam/trunk/test.h 新增 /data/exam/trunk/Makefile 新增 /data/exam/branches 新增 /data/exam/tags 提交后的修订版为 1。 |
[WORK] tmp # svn checkout file:///data/svn/test/exam/trunk exam A exam/test.c A exam/test.h A exam/Makefile 取出修订版 1。 [WORK] tmp # ls -lR exam/ exam/: 总计 12 -rw-r--r-- 1 root root 101 03-22 20:20 Makefile -rw-r--r-- 1 root root 129 03-22 20:20 test.c -rw-r--r-- 1 root root 25 03-22 20:20 test.h |
[WORK] exam # svn diff Index: test.c =================================================================== --- test.c (修订版 1) +++ test.c (工作拷贝) @@ -6,6 +6,7 @@ { printf("Hello world!\n"); printf("I am using %s\n", CS); + printf("I modified this.\n"); return 0; } |
[WORK] exam # svn ci -m "add a new line" 正在发送 test.c 传输文件数据. 提交后的修订版为 2。 |