Keith Nicholas
Keith Nicholas

Reputation: 44288

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 changes

Bob makes further changes

Alice pushes to central.

Bob pushes to central

Upvotes: 0

Views: 101

Answers (2)

zerkms
zerkms

Reputation: 254886

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

Upvotes: 4

luqui
luqui

Reputation: 60463

Yes.

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

Upvotes: 2

Related Questions