* HeadとTip [#r56b51aa]
 

** リポジトリfooを作る [#l5d7dd53]
 mkdir foo
 cd foo
 hg init
 vi 1.txt
 hg add 1.txt; hg commit -m 'add 1.txt'

** fooをクローンしてリポジトリbarを作る [#g88b6802]
 cd ..
 hg clone foo bar

** リポジトリfooでコミットをする [#ma6c538e]
 cd foo
 vi 1.txt
 hg commit -m 'update 1.txt'
 
** リポジトリbarでコミットをする [#wca88350]
 cd ../bar
 hg heads
 changeset:   0:5321ed0d2b1b
 tag:         tip
 user:        taro
 date:        Thu Jul 12 20:14:30 2012 +0900
 summary:     add 1.txt

 vi 2.txt
 hg add 2.txt; hg commit -m 'add 2.txt'

 hg heads
 changeset:   1:acaac151858a
 tag:         tip
 user:        taro
 date:        Thu Jul 12 20:16:59 2012 +0900
 summary:     add 2.txt

** リポジトリbarでpullする [#fbde7c5b]
 hg pull
 hg heads
 changeset:   2:e48d7abcb233
 tag:         tip
 parent:      0:5321ed0d2b1b
 user:        taro
 date:        Thu Jul 12 20:15:14 2012 +0900
 summary:     update 1.txt
 
 changeset:   1:acaac151858a
 user:        taro
 date:        Thu Jul 12 20:16:59 2012 +0900
 summary:     add 2.txt

 
** リポジトリbarでブランチを作る [#j26aef92]
 hg branch br01
 hg commit -m 'new branch br01'
 vi 3.txt

 hg add .\3.txt; hg commit -m 'add 3.txt'
 hg update default

 hg heads
 changeset:   4:e1e322d25fbb
 branch:      br01
 tag:         tip
 user:        taro
 date:        Thu Jul 12 20:22:25 2012 +0900
 summary:     add 3.txt
 
 changeset:   2:e48d7abcb233
 parent:      0:5321ed0d2b1b
 user:        taro
 date:        Thu Jul 12 20:15:14 2012 +0900
 summary:     update 1.txt
 
 changeset:   1:acaac151858a
 user:        taro
 date:        Thu Jul 12 20:16:59 2012 +0900
 summary:     add 2.txt

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS