开发者

create mercurial branch from another branch (non default)

How开发者_JS百科 do i create a branch from another non-default branch (say Y) in mercurial

Thanks!


You can create a branch from any revision, example:

$ hg update -r 500 or $ hg clone --rev 500 // depends on what you want
$ hg branch newbranch
$ hg commit -m 'made a new branch from revision 500'

Hope it helps.


hg flow "parent branch" start "child branch" -u "user"

hg commit -m"message" -u "user"

hg flow "parent branch" "child branch"

hg flow "parent branch" finish

i hope this is useful

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜