Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: Marsu42 on February 15, 2014, 01:41:14 PM

Title: How to discover conflicts during repo sync w/ or w/o Bitbucket?
Post by: Marsu42 on February 15, 2014, 01:41:14 PM
Using Bitbucket, when I try to sync my ML fork with the master I'm getting the error message "Unable to merge - conflicts during merge". Problem is: even after resolving all issues with files marked with "conflict" in the diff, it still fails w/o any file marked as a problem - unlike the promised "View the conflicts".

I have encountered this problem multiple times by now and the only solution I found is to completely reset, i.e. delete the repo, re-fork and re-patch in all my changes. Is there any way to find out what the problem is - probably by running hg directly w/o BitBucket? Thanks!
Title: Re: How to discover conflicts during repo sync w/ or w/o Bitbucket?
Post by: a1ex on February 15, 2014, 01:50:10 PM
If I get conflicts, I would try to do the merge locally, rather than via Bitbucket.

You will get a 3-way merge dialog and you choose manually what changes to merge and what not. But it's quite easy to screw it up (e.g. for 5D3 123 I'm tempted to export all patches, start a fresh branch, and re-apply them).

Nanomad and g3gg0 are experimenting with patch queues. For local changes, I use "hg pull --rebase", or manual patches.
Title: Re: How to discover conflicts during repo sync w/ or w/o Bitbucket?
Post by: dmilligan on February 15, 2014, 04:53:53 PM
This is the reason I don't ever commit to unified in my own repo. Always commit your own changes to a branch. You won't ever need to make new forks if you keep unified 'clean'. And you can even submit more than one pull request at the same time from a single repo.

Whenever I get merge conflict I usually just edit the files manually b/c often 'use theirs' and 'use mine' are wrong, the 'correct' merge is actually some combination. Just search for '<<<<<<<' in the files and fix them all.

http://www.magiclantern.fm/forum/index.php?topic=9524.0
Title: Re: How to discover conflicts during repo sync w/ or w/o Bitbucket?
Post by: a1ex on February 15, 2014, 05:00:22 PM
These are great tips (just made them sticky).
Title: Re: How to discover conflicts during repo sync w/ or w/o Bitbucket?
Post by: Marsu42 on February 15, 2014, 07:55:39 PM
And you can even submit more than one pull request at the same time from a single repo.

Thanks for this information because making a new repo fork for every trivial pull request as I used to do is a major pita :-o and doesn't really motivate to submit small changes.
Title: Re: How to discover conflicts during repo sync w/ or w/o Bitbucket?
Post by: Audionut on February 16, 2014, 12:06:03 AM
Clutters the commit log a little, but usability looks significantly better.