-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git lab
creates new MRs instead of updating existing MRs
#49
Comments
git lab
creates new MRs instead of updating existing MRs
Why: - It is better not to be surprised by the output of `git lab` (see issue yaoyuannnn#49) What: - Show the list of proposed MR updates/creations, and prompt the user to proceed - [misc] set the _web_url property as "(new)" when printing info for an MR that does not yet exist Fixes yaoyuannnn#50 Change-Id: I3a758a21ccd46930fe33eabecbec9c57b705b3aa
Why: - It is better not to be surprised by the output of `git lab` (see issue yaoyuannnn#49) What: - Show the list of proposed MR updates/creations, and prompt the user to proceed - [misc] set the _web_url property as "(new)" when printing info for an MR that does not yet exist Fixes yaoyuannnn#50 Change-Id: I3a758a21ccd46930fe33eabecbec9c57b705b3aa
With the patch in #50 (and a few
The branch I'm on is |
Why: - Running `git lab` on a commit that has an existing MR can result in gerritlab creating a new MR (yaoyuannnn#49). This occurs when the local branch is already in the gerritlab format (e.g. perhaps one ran `glab mr checkout` on a gerritlab-created MR). What: - Check if the local branch is already in the {branch}-{change-id} format, and if so, return that rather than returning an incorrect remote branch name Fixes yaoyuannnn#49 Change-Id: Icb201f9cc07f930d8ad8dd4eb5bd6c467afa08f2
Maybe branch name is the wrong thing to check, though. We have |
I think this is probably resolved as of #54. Note that upgrading to the latest Gerritlab code means that existing MRs with the old naming scheme will de-associated. |
Steps to reproduce:
glab mr checkout 98
(https://gitlab.wikimedia.org/repos/mediawiki/services/ipoid/-/merge_requests/98)git commit
, rebase interactive and update the commit associated with MR 96 (https://gitlab.wikimedia.org/repos/mediawiki/services/ipoid/-/merge_requests/96)git lab
Expected:
Actual:
The text was updated successfully, but these errors were encountered: