名前付きブランチブランチ作成> 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 |
|