merge request: error if merge request already exists
Created by: sroth80021
If I understand properly, Merge Requests are for branches (A ==> B) rather than for commits. I think this means the merge request is not so much for merging a specific static set of code -- it seems to be dynamic (for example, if branch A keeps getting pushed to, then the latest changes will get pushed to B, when the MR is accepted)
So if one does this sequence:
- push A1, A2 to branch A
- create MR from branch A ==> B
- push A3 to branch A
- accept MR
Then one will end up with A1, A2, and A3 pushed to branch B, even though A3 did not exist at the time the MR was created.
Presuming I understand correctly, then I dont think it makes sense to have two merge requests for the same pair of branches (A ==> B), since approving either would essentially perform the accept on both.
If this is the case, then it would be nice to get an error message when creating a MR from A==>B if an existing MR already exists from A==>B.