This is because the conflicts were not resolved before committing the
merge and pushing to Gerrit.
The "merge conflict" in Gerrit's UI is not related to the content of the
diff. It is shown when the commit cannot be merged into the repository
because of conflicts between the change and what is already in the
repository.
On Tuesday, 8 July 2014 03:19:53 UTC+3, David Pursehouse wrote:This is because the conflicts were not resolved before committing the
merge and pushing to Gerrit.
The "merge conflict" in Gerrit's UI is not related to the content of the
diff. It is shown when the commit cannot be merged into the repository
because of conflicts between the change and what is already in the
repository.
Ok, I understand. So is there any way I can know before pushing if there was a conflict?
Coz when I executed git merge <commit2> I did not get any message which says that there are conflicts.
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
On Tue, Jul 8, 2014 at 9:35 AM, mani chandel <mani.c...@gmail.com> wrote:
On Tuesday, 8 July 2014 03:19:53 UTC+3, David Pursehouse wrote:This is because the conflicts were not resolved before committing the
merge and pushing to Gerrit.
The "merge conflict" in Gerrit's UI is not related to the content of the
diff. It is shown when the commit cannot be merged into the repository
because of conflicts between the change and what is already in the
repository.
Ok, I understand. So is there any way I can know before pushing if there was a conflict?If there *was* a conflict during the merge of commit1 and commit2 Git would tell you and you wouldknow that before pushing.Coz when I executed git merge <commit2> I did not get any message which says that there are conflicts.
This is what David already explained. What you see in Gerrit's UI is NOT a conflictbetween the commit1 and commit2 but between the merge(commit1, commit2) and the tipof the target branch.
On Wed, Jul 16, 2014 at 5:06 PM, Saša Živkov <ziv...@gmail.com> wrote:
On Tue, Jul 8, 2014 at 9:35 AM, mani chandel <mani.c...@gmail.com> wrote:
On Tuesday, 8 July 2014 03:19:53 UTC+3, David Pursehouse wrote:This is because the conflicts were not resolved before committing the
merge and pushing to Gerrit.
The "merge conflict" in Gerrit's UI is not related to the content of the
diff. It is shown when the commit cannot be merged into the repository
because of conflicts between the change and what is already in the
repository.
Ok, I understand. So is there any way I can know before pushing if there was a conflict?If there *was* a conflict during the merge of commit1 and commit2 Git would tell you and you wouldknow that before pushing.Coz when I executed git merge <commit2> I did not get any message which says that there are conflicts.This is what David already explained. What you see in Gerrit's UI is NOT a conflictbetween the commit1 and commit2 but between the merge(commit1, commit2) and the tipof the target branch.What I wrote above is nonsense :-(So, you probably didn't resolve the conflicts before committing the merge... and the conflict markersbecame part of the commit.If this is not true and you really didn't have any conflicts on merge then I can only imagine thatin your local repository native Git auto resolved all the conflicts but then Gerrit couldn't auto-resolveall of them and then shows the conflicts in the auto-merge version in the UI.
But there were no >>> >> <<< kind of marks showing conflicts in that filenor were was there any conflict message when I executed git merge.And then when I pushed to gerrit I got the result that I pasted in first post with >>><<< marks on left.so then developer had to remove the duplicate manually from this file and upload a new patchset.Every time I conducted this test of merging these 2 commits I got same result.