Gerrit appears submitted, merge Pending and merge Conflict

Source: Internet
Author: User

One: Submitted, Merge pending solution

Cause:

For example:

Reason 1>

(1) I submitted a new project to Gerrit, called Commit1, this commit1 I did not submit to the branch

(2) I then submitted a commit2 in the original compiler.

(3) At this time I review commit2 this record, add 2 points, then I click on the submit Merge code will report this error. Only after merging commit1 into the branch, can commit2 submit.

Reason 2>

(1) In a complete project, I first commit1, the second commit2, the third commit3, these are commit3,commit2.comimt1 in turn dependent, this situation is mostly.

(2) Commit3 was review, add 2 points, click Submit, this will also appear submitted, Merge Pending

Workaround:

Cause 1 Solutions >

1. Click Submit is invalid

2. The New Gerrit Web page Click Cherry-pick, the old version click Cherry Pick to if can merge, indicating that you are very diao.

3. If you cannot merge to indicate that your commit relies on the code previously submitted by someone else, you can only wait for the COMMIT1 code to submit.

Cause 2 Solutions >

1. Click Submit is invalid

2. Click Cherry-pick it is possible to merge successfully, but conflict can occur, then resolve the conflict commit.

II: Submitted, Merge Pending see which files are dependent, need to use the old version of Gerrit to see, all need to be set, the article finally wrote how to change Gerrit view version

Three: Toggle the old version of Gerrit view

Enter Settings--preferences--change view--Select old screen--save changes re-enter the record that you just commit

Gerrit appears submitted, merge Pending and merge Conflict

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.