rcs short tour2009年02月10日 00時54分39秒


% cd /tmp
% mkdir rcswork
% cd rcswork
% echo "A B C" > a.txt
% echo "1 2 3" > 1.txt
% ci a.txt 
a.txt,v  <--  a.txt
enter description, terminated with single '.' or end of file:
NOTE: This is NOT the log message!
>> /tmp/rcswork/a.txt is under RCS.
>> .
initial revision: 1.1
done
% ci 1.txt
1.txt,v  <--  1.txt
enter description, terminated with single '.' or end of file:
NOTE: This is NOT the log message!
>> /tmp/rcswork/1.txt is under RCS.
>> .
initial revision: 1.1
done
% ls -a
.       ..      1.txt,v a.txt,v
% co 1.txt,v 
1.txt,v  -->  1.txt
revision 1.1
done
% echo "10 11 12" >> 1.txt  
1.txt: Permission denied.
% co -l 1.txt
1.txt,v  -->  1.txt
revision 1.1 (locked)
done
% echo "10 11 12" >> 1.txt
% rcsdiff 1.txt
===================================================================
RCS file: 1.txt,v
retrieving revision 1.1
diff -r1.1 1.txt
1a2
> 10 11 12
% rcsdiff -u 1.txt
===================================================================
RCS file: 1.txt,v
retrieving revision 1.1
diff -u -r1.1 1.txt
--- 1.txt       2009/02/09 16:11:20     1.1
+++ 1.txt       2009/02/09 16:15:12
@@ -1 +1,2 @@
 1 2 3
+10 11 12
% ci -m 'Added 2 digits numbers.' 1.txt
ci: missing message for -m option
% ci -m'Added 2 digits numbers.' 1.txt
1.txt,v  <--  1.txt
new revision: 1.2; previous revision: 1.1
done
% ls -a
.       ..      1.txt,v a.txt,v
% mv a.txt,v A.txt,v
% ls -a
.       ..      1.txt,v A.txt,v
%rlog 1.txt,v 

RCS file: 1.txt,v
Working file: 1.txt
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;     selected revisions: 2
description:
/tmp/rcswork/1.txt is under RCS.
----------------------------
revision 1.2
date: 2009/02/09 16:17:04;  author: uyota;  state: Exp;  lines: +1 -0
Added 2 digits numbers.
----------------------------
revision 1.1
date: 2009/02/09 16:11:20;  author: uyota;  state: Exp;
Initial revision
----------------------------
=============================================================================
% rlog A.txt,v

RCS file: A.txt,v
Working file: A.txt
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;     selected revisions: 1
description:
/tmp/rcswork/a.txt is under RCS.
----------------------------
revision 1.1
date: 2009/02/09 16:10:56;  author: uyota;  state: Exp;
Initial revision
----------------------------
=============================================================================

旅程cvsMercurial/hggitSubversion/svnrcssvk