Page MenuHomePhabricator

Provide search operator "is:mergeable" in Gerrit
Closed, ResolvedPublic


According to, Gerrit 2.9 introduces the search operator "is:mergeable" which indicates whether a changeset needs a manual rebase or not. This would allow for easy searches for "all changesets that I need to rebase".

Version: unspecified
Severity: enhancement
See Also:



Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:10 AM
bzimport added a project: Gerrit.
bzimport set Reference to bz63995.
bzimport added a subscriber: Unknown Object (MLST).

Until then a short script to determine whether a branch is rebaseable according to Gerrit:

COMMITID="$(git log -1 --format=format:%B "$1"sed -ne 's/^Change-Id: //p;')"
MERGEABLE="$(curl -s "$COMMITID"sed -e 1djq '.mergeable')"
if [ "true" = "$MERGEABLE" ]; then
exit 0
if [ "false" = "$MERGEABLE" ]; then
exit 1
echo "Unknown result: $MERGEABLE"
exit 2
demon claimed this task.
demon subscribed.

This is a thing now.