名前付きブランチ

ブランチ作成

 > hg branch br01
 > hg commit -m 'new branch'

ブランチ一覧確認

 > hg branches
 br01                           4:4c7817a0209a
 default                        3:9131fc7704ce (inactive)

現在のブランチを確認

 > hg branch
 default

ブランチを移る

 > hg update br01

br01に移った。

現在のブランチに未コミットな変更がある場合でブランチを変更する

 > hg update -C br01

現在のブランチの変更は破棄される。

ブランチを閉じる

「ブランチを閉じる」 = 「hg branchesにそのブランチが表示されなくなる」という事。

 > hg commit --close-branch

現在のブランチは閉じられた。

ブランチを削除する

出来ない。

ブランチをマージする

 > hg merge br01

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

Last-modified: 2013-03-18 (月) 21:11:36