Mercurial & Sphinx

branch

«  Mercurial   ::   Contents   ::   graphlog  »

branch

LastUpdated: $IsoDate$

リポジトリの複製

command input:

> cd ~hgproj/hgrepository/
> hg clone -r abcd1234 mywork release

ブランチに名前を付ける

マスターとの同期

command input:

> hg pull
> hg update

ブランチの確認

command input:

> hg branches

default                       24:c25dec78063b

ブランチの作成

command input:

> hg branch publish-line

marked working directory as branch publish-line


> hg branches

default                       24:c25dec78063b

この時点では反映されていない。

タグの作成

command input:

> hg tag publish-line-base

.hgtags

> hg branches

publish-line                  25:94b9df1914de
default                       24:c25dec78063b (inactive)

タグの取り消し

タグ付け直後であれば、bg rollbackで実施可能

command input:

> hg rollback

rolling back to revision 24 (undo commit)

branchの取り消し

最初のcommit前であれば、hg branch default を実施することで取り消し可能

command input:

> hg branches

default                       24:c25dec78063b

並行独立更新 (transplant)

.hg/hgrc:

[extensions]
transplant =

修正を取り込みたい方のリポジトリで:

> hg transplant -s (A') 修正3

«  Mercurial   ::   Contents   ::   graphlog  »