Can Mercurial Branching Do
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.
精彩评论