dr.
dr.

Reputation: 1449

Continuously Fixing Same Mercurial Merge Issues

My co-worker and I are working on a project and we are using mercurial + bitbucket.

We are experiencing problems when one of us pulls from bitbucket and merge. For instance, after I pull from bitbucket with hg pull --rebase, I have to

He does hg pull followed with hg merge and gets the same results as me.

What are we doing wrong?

Besides rebase/merge, we work the same

Upvotes: 0

Views: 108

Answers (1)

Tim Delaney
Tim Delaney

Reputation: 5605

The most likely cause is that you're rebasing changesets that have already been pushed. Rebase modifies history, and unless you really know what you're doing you should only rebase changesets that have never been shared to another repository.

If you are using Mercurial 2.1 or later it has support for phases. When phases are working rebase will only allow rebasing of draft and secret changesets, not public ones.

In general, I'd advise you to use merging rather than rebasing.

Upvotes: 1

Related Questions