About the button of 'Cherry Pick' in webui.

66 views
Skip to first unread message

vista...@gmail.com

unread,
Apr 18, 2018, 5:30:55 AM4/18/18
to Repo and Gerrit Discussion
Hi,all:

        How to config that the button of 'Cherry Pick' has arisen until the change was merged and it was hide for other status of change?


Thanks!

vista...@gmail.com

unread,
Apr 19, 2018, 9:46:21 PM4/19/18
to Repo and Gerrit Discussion
Please help!

Thanks!

Gustaf Lundh

unread,
Apr 20, 2018, 3:46:16 AM4/20/18
to vista...@gmail.com, Repo and Gerrit Discussion

Hi.


You cannot configure Gerrit so that the Cherry-pick button is only visible on merged changes.


Even if we introduced this a setting like this, the user still has the ability to do a local cherry-pick and push to Gerrit. So it would not actually hinder cherry-picks from open changes.


/Gustaf 


From: repo-d...@googlegroups.com <repo-d...@googlegroups.com> on behalf of vista...@gmail.com <vista...@gmail.com>
Sent: Friday, April 20, 2018 3:46 AM
To: Repo and Gerrit Discussion
Subject: Re: About the button of 'Cherry Pick' in webui.
 
--
--
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.
For more options, visit https://groups.google.com/d/optout.

David Ostrovsky

unread,
Apr 22, 2018, 8:15:24 AM4/22/18
to Repo and Gerrit Discussion

On Wednesday, April 18, 2018 at 11:30:55 AM UTC+2, vista...@gmail.com wrote:
Hi,all:

        How to config that the button of 'Cherry Pick' has arisen until the change was merged and it was hide for other status of change?

As Gustaf pointed out, you cannot "configure" Gerrit to do that,
but since Gerrit 2.14, Dave added action visitor extension point,
that allows to intercept (remove or mutate) actions in Gerrit: [1].

Using this extension point it's trivial to write a plugin to do what
you want (1-liner). Here is the hide-cherrypick-action plugin: [2].

Reply all
Reply to author
Forward
0 new messages