涓嬩竴涓細 , 涓婁竴涓細 Exit status, 涓婂眰锛� CVS commands


A.3 榛樿閫夐」涓� ~/.cvsrc 鏂囦欢

鏈変竴浜� command_options 浣跨敤寰楅潪甯搁绻侊紝闇€瑕侀噰鐢ㄥ埆鍚嶆垨鍏朵粬鏂瑰紡鏉ョ‘淇濇寚瀹� 杩欎簺閫夐」銆備竴绉嶆儏鍐�(浜嬪疄涓婏紝姝f槸姝ゅ師鍥犲鑷翠娇鐢� .cvsrc)鏄汉浠彂鐜伴粯璁ょ殑 `diff' 杈撳嚭闅句互闃呰锛岀浉瀵硅€岃█锛屼笂涓嬫枃 diffs 鎴� unidiffs 閮芥瘮瀹冨鏄撶悊瑙c€�

~/.cvsrc 鏂囦欢鏄竴绉嶅皢榛樿閫夐」鍔犵粰 cvs_commands 鐨勬柟娉曪紝鐢ㄦ潵鍙栦唬鍒悕 鎴栧叾浠� shell 鑴氭湰鐨勬柟娉曘€�

~/.cvsrc 鐨勬牸寮忓緢绠€鍗曘€傚綋 cvs_command 琚墽琛屾椂锛岃鏂囦欢鎸夌浉鍚岀殑 鍛戒护鍚嶆悳绱㈡瘡涓€琛屻€傝嫢鍖归厤锛岃琛屽墿浣欓儴鍒嗗皢琚垎闅�(绌烘牸)鎴愬悇閫夐」锛屾坊鍔犲埌鍛戒护琛岀殑鎵€鏈� 鍙傛暟涔嬪墠銆�

濡傛灉涓€涓懡浠ゆ湁涓や釜鍚嶇О(姣斿锛�checkout 鍜� co)锛屽叾姝e紡鍚嶇О锛岃€屼笉鏄� 鍛戒护琛屼腑浣跨敤鐨勶紝灏嗚鐢ㄦ潵杩涜姣旇緝銆備簬鏄鏋滅敤鎴风殑涓€涓� ~/.cvsrc 鏂囦欢鍐呭涓�:

     log -N
     diff -uN
     rdiff -u
     update -Pd
     checkout -P
     release -d

鍛戒护 `cvs checkout foo' 灏嗘湁 `-P' 閫夐」琚坊鍔犲埌鍙傛暟涓紝瀵逛簬 `cvs co foo' 涔熷姝ゃ€�

涓婇潰鐨勪緥瀛愶紝`cvs diff foobar' 鍛戒护鐨勮緭鍑轰负 unidiff 鏍煎紡銆俙cvs diff -c foobar' 鎻愪緵涓婁笅鏂� diffs銆傚瑕佽幏寰�"鏃х殑" diff 鐨勮緭鍑烘牸寮忥紝浼氭湁浜涢夯鐑︼紝鍥犱负 diff 骞舵病鏈変竴涓€夐」閫傜敤浜�"鏃х殑"鏍煎紡锛屾墍浠ヤ綘闇€瑕佺敤 `cvs -f diff foobar'銆�

浣犺繕鍙互浣跨敤 cvs 浣滀负鍛戒护鍚嶆潵鎸囧畾鍏ㄥ眬閫夐」 (鍙傞槄 Global options)銆� 渚嬪锛屽湪 .cvsrc 涓坊鍔犺繖鏍蜂竴琛�

     cvs -z6

灏嗚揩浣� cvs 閲囩敤鍘嬬缉绾у埆 6銆�