开发者

Can Mercurial Branching Do

开发者 https://www.devze.com 2023-01-24 11:03 出处:网络
Does this scenario work using mercurial? so if you have a central rep Central->Bob clones.Bob makes changes.

Does this scenario work using mercurial?

so if you have a central rep

Central -> Bob clones. Bob makes changes.

Alice Clones off bob, alice makes开发者_StackOverflow中文版 changes

Bob makes further changes

Alice pushes to central.

Bob pushes to central


Short answer: yes

Long answer:

Bob:

hg clone ssh://central/repo bob_local
cd bob_local
... // changed something
hg ci -m "ta-dah"

Alice:

hg clone bob_local alice_local
cd alice_local
... // changed something
hg ci -m "ta-dah from Alice"
hg push ssh://central/repo

Bob:

hg push // at this step Bob have to get warning about changesets from Alice and
        // have to pull before push


Yes.

Really that's the best answer I could give. Try it and see.

0

精彩评论

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