最近改用SVN, 怕忘記CVS 使用方法, 記錄一些使用方法
cvs co -r TAG_OR_BRANCH_NAME Module_name;cd Module_name; cvs upd -dP
cvs diff -N -u linux-2.4.18/ > patch-0.8.35.4
diffstat -p0 patches/patch-0.8.35.4
http://cvsdoc-zh.gro.clinux.org/cvsdoc/zh_TW/html/1_11_19/Common-options.html#Common-options (dead link)
checkout [options] modules...
-D date_spec
ISO8601 dates have many variants but a few examples are:
1972-09-24
1972-09-24 20:05
cvs status * > status.log ;\
cat status.log | grep Status: | grep -v "to-date" | grep -v "Patch" > status2.log
cvs upd -r 1.201 abc.c
cvs update -r 1.41 -p def.c > def.c.r41
cvs update -r 1. -p > .r
* 將cvs update的log存到檔案
o cvs upd -d 2>&1 | tee ../cvs`date +%m%d%H%M`.log
* 看cvs update log 但不要秀出 含 "cvs server: "
o cat ../cvsmmddHHMM.log |grep -v "cvs server:"
clean CVS DIR
find -name "CVS" -exec rm -rf {} \;
沒有留言:
張貼留言