Le 14/10/13 02:01, Jeroen De Dauw a écrit :
> Hey,
> 
> I have a big pile of commits that I have been added as reviewer on Gerrit,
> most of which I really do not care about. As a result, the entirely list
> becomes pretty useless and is just being a big waste of screen space. I
> could go through all those commits one by one and remove myself from them,
> though that is rather tedious. Is there a way to remove such commits
> quickly from my review list by just clicking them in the list, or doing a
> "select, select, select, remove selected" thing?

Hello,

You can query Gerrit over ssh interactive shell. I have setup a small
bash function for that:

 $ declare -f gerrit
 gerrit ()
 {
    if [ -z "$1" ]; then
        ARGS="--help";
    else
        ARGS="$@";
    fi;
    set -x;
    ssh -p 29418 gerrit.wikimedia.org "gerrit $ARGS";
    set +x
 }

Get help with:  gerrit --help

I can query Gerrit from the command line:

 gerrit query "reviewer:'self' is:open"


And one can remove self from a change with something like:

 gerrit set-reviewer <COMMIT THERE> --remove self

Pass '--format json' to get ... json output!

-- 
Antoine "hashar" Musso


_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to