- 追加された行はこの色です。
- 削除された行はこの色です。
headとtip
** head [#y5ce5a0f]
例えば、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 [#r56b51aa]
headとtip
** head
例えば、hg cloneして作ったブランチが
** リポジトリfooを作る [#l5d7dd53]
mkdir foo
cd foo
hg init
cd foo
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'
PS C:\Users\nigeria\tmp\bar> hg heads
changeset: 2:f7f5eb4ec42b
hg heads
changeset: 1:acaac151858a
tag: tip
parent: 0:22863d6391bf
user: taro
date: Thu Jul 12 19:59:58 2012 +0900
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:3aae1d1fcffa
changeset: 1:acaac151858a
user: taro
date: Thu Jul 12 20:00:51 2012 +0900
summary: 2.txt
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 'update 3.txt'
hg add .\3.txt; hg commit -m 'add 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
changeset: 4:e1e322d25fbb
branch: br01
tag: tip
user: taro
date: Thu Jul 12 20:02:19 2012 +0900
date: Thu Jul 12 20:22:25 2012 +0900
summary: add 3.txt
changeset: 2:f7f5eb4ec42b
parent: 0:22863d6391bf
changeset: 2:e48d7abcb233
parent: 0:5321ed0d2b1b
user: taro
date: Thu Jul 12 19:59:58 2012 +0900
date: Thu Jul 12 20:15:14 2012 +0900
summary: update 1.txt
changeset: 1:3aae1d1fcffa
changeset: 1:acaac151858a
user: taro
date: Thu Jul 12 20:00:51 2012 +0900
summary: 2.txt
date: Thu Jul 12 20:16:59 2012 +0900
summary: add 2.txt