Mercurial/hg short tour2009年02月07日 08時18分05秒


% cd /tmp
% mkdir hgwork
% cd hgwork
% ehco "A B C" > a.txt
% echo "1 2 3" > 1.txt
% hg init
% hg addremove
adding 1.txt
adding a.txt
% hg ci -m '/tmp/hgwork is under mercurial.'
% hg stat a.txt
% hg log a.txt 
changeset:   0:bd583b61ce1a
tag:         tip
user:        uyota@localhost
date:        Sun Feb 07 07:34:00 2009 -0500
summary:     /tmp/hgwork is under mercurial.
% echo "10 11 12" >> 1.txt 
% hg diff 1.txt 
diff -r bd583b61ce1a 1.txt
--- a/1.txt     Sun Feb 07 07:34:00 2009 -0500
+++ b/1.txt     Sun Feb 07 07:37:11 2009 -0500
@@ -1,1 +1,2 @@
 1 2 3
+10 11 12
M 1.txt
% hg status
% hg ci -m 'Added 2 digits numbers.'
% hg rename a.txt A.txt
% hg status
R a.txt
A A.txt
% hg ci -m 'Uppercase.'
% ls -a
.       ..      .hg     1.txt   A.txt
% hg log
changeset:   2:74414cb3510d
tag:         tip
user:        uyota@localhost
date:        Sun Feb 07 07:38:46 2009 -0500
summary:     Uppercase.

changeset:   1:678bfd616c62
user:        uyota@localhost
date:        Sun Feb 07 07:38:00 2009 -0500
summary:     Added 2 digits numbers.

changeset:   0:bd583b61ce1a
user:        uyota@localhost
date:        Sun Feb 07 07:34:00 2009 -0500
summary:     /tmp/hgwork is under mercurial.

旅程cvsMercurial/hggitSubversion/svnrcssvk