How to use "Rebase on a specific change, ref, or commit" on web-interface?

747 views
Skip to first unread message

Ajay Garg

unread,
Dec 27, 2022, 2:17:15 AM12/27/22
to Repo and Gerrit Discussion
Hi All.

I have a simple requirement: I wish to rebase my current gerrit to the commit 5d9b0f6a3659f6dbc36d47974e0652fa396ef59e using the "Rebase on a specific change, ref, or commit" feature on web-interface.

Following are my trials and failure messages :

a)
5d9b0f6a3659f6dbc36d47974e0652fa396ef59e

Could not perform action: base revision is missing from the destination branch: 5d9b0f6a3659f6dbc36d47974e0652fa396ef59e

b)
master:5d9b0f6a3659f6dbc36d47974e0652fa396ef59e

Could not perform action: base revision is missing from the destination branch: master

c)
master 5d9b0f6a3659f6dbc36d47974e0652fa396ef59e

Could not perform action: base revision is missing from the destination branch: master


What is the correct format/command to be used?

Thanks and Regards,
Ajay

Björn Pedersen

unread,
Dec 27, 2022, 3:04:29 AM12/27/22
to Repo and Gerrit Discussion
ajayga...@gmail.com schrieb am Dienstag, 27. Dezember 2022 um 08:17:15 UTC+1:
Hi All.

I have a simple requirement: I wish to rebase my current gerrit to the commit 5d9b0f6a3659f6dbc36d47974e0652fa396ef59e using the "Rebase on a specific change, ref, or commit" feature on web-interface.

Following are my trials and failure messages :

a)
5d9b0f6a3659f6dbc36d47974e0652fa396ef59e

Could not perform action: base revision is missing from the destination branch: 5d9b0f6a3659f6dbc36d47974e0652fa396ef59e


Are you trying to rebase on a different branch? Then you probably need to do it locally via git commandline. If you want to move a change to a different branch you could also try to  cherry-pick it from Ui instead.

Ajay Garg

unread,
Dec 27, 2022, 3:58:03 AM12/27/22
to Repo and Gerrit Discussion

Hi, thanks for your time.

 

Are you trying to rebase on a different branch? Then you probably need to do it locally via git commandline. If you want to move a change to a different branch you could also try to  cherry-pick it from Ui instead.


No, I am trying to rebase to the same branch.

Using command-line and then re-uploading makes me fearful that the gerrit-number will change (which I don't want, as there has been quite a bit of discussions).

Does "Rebase on a specific change, ref, or commit" from web-interface not work? I asked a very simple question to know the syntax of specifying destination branch and base-commit.


Thanks and Regards,
Ajay

 

Ajay Garg

unread,
Dec 27, 2022, 5:01:04 AM12/27/22
to Repo and Gerrit Discussion
Anyhow, seems "Cherry pick" is what I needed to achieve exactly what I wanted.

I would suggest gerrit developers/management to remove the "Rebase on a specific change, ref, or commit" option, so that users do not kill themselves for hours.

Thanks and Regards,
Ajay

Björn Pedersen

unread,
Dec 27, 2022, 10:18:00 AM12/27/22
to Repo and Gerrit Discussion
ajayga...@gmail.com schrieb am Dienstag, 27. Dezember 2022 um 11:01:04 UTC+1:
Anyhow, seems "Cherry pick" is what I needed to achieve exactly what I wanted.

I would suggest gerrit developers/management to remove the "Rebase on a specific change, ref, or commit" option, so that users do not kill themselves for hours.


Well, rebase does work normally ( as well as using  the commandline, which is the 'normal' workflow anyway.)
 
Thanks and Regards,
Ajay
Reply all
Reply to author
Forward
0 new messages