headとtip

head

例えば、hg cloneして作ったブランチが

mkdir foo cd foo hg init

cd foo vi 1.txt hg add 1.txt; hg commit -m 'add 1.txt'

cd .. hg clone foo bar

cd foo vi 1.txt hg commit -m 'update 1.txt'

cd ../bar vi 2.txt hg add 2.txt; hg commit -m 'add 2.txt'

PS C:\Users\nigeria\tmp\bar> hg heads changeset: 2:f7f5eb4ec42b tag: tip parent: 0:22863d6391bf user: taro date: Thu Jul 12 19:59:58 2012 +0900 summary: update 1.txt

changeset: 1:3aae1d1fcffa user: taro date: Thu Jul 12 20:00:51 2012 +0900 summary: 2.txt

HeadとTip

 headとtip
 
 ** head
 例えば、hg cloneして作ったブランチが
 
 mkdir foo
 cd foo
 hg init
 
 cd foo
 vi 1.txt
 hg add 1.txt; hg commit -m 'add 1.txt'
 
 cd ..
 hg clone foo bar
 
 cd foo
 vi 1.txt
 hg commit -m 'update 1.txt'
 
 cd ../bar
 vi 2.txt
 hg add 2.txt; hg commit -m 'add 2.txt'
 
 PS C:\Users\nigeria\tmp\bar> hg heads
 changeset:   2:f7f5eb4ec42b
 tag:         tip
 parent:      0:22863d6391bf
 user:        taro
 date:        Thu Jul 12 19:59:58 2012 +0900
 summary:     update 1.txt
 
 changeset:   1:3aae1d1fcffa
 user:        taro
 date:        Thu Jul 12 20:00:51 2012 +0900
 summary:     2.txt
 
 
 hg branch br01
 hg commit -m 'new branch br01'
 vi 3.txt
 hg add 3.txt; hg commit -m 'update 3.txt'
 hg update default
 hg heads
 
 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
 PS C:\Users\nigeria\tmp\bar> hg heads
 changeset:   4:53e27770ffe0
 branch:      br01
 tag:         tip
 user:        taro
 date:        Thu Jul 12 20:02:19 2012 +0900
 summary:     add 3.txt
 
 changeset:   2:f7f5eb4ec42b
 parent:      0:22863d6391bf
 user:        taro
 date:        Thu Jul 12 19:59:58 2012 +0900
 summary:     update 1.txt
 
 changeset:   1:3aae1d1fcffa
 user:        taro
 date:        Thu Jul 12 20:00:51 2012 +0900
 summary:     2.txt

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS