login: Focus the username field on load
[patchwork] / tools / patchwork-update-commits
1 #!/bin/bash
2
3 toolsdir="$(dirname "$0")"
4 pwpath="${toolsdir}"/../patchwork
5
6 if [ "$#" -lt 1 ]
7 then
8         echo "usage: $0 <revspec>" >&2
9         exit 1
10 fi
11
12 git rev-list --reverse "$@" |
13 while read commit
14 do
15         hash=$(git show "$commit" | python $pwpath/parser.py -#)
16         $pwpath/bin/pwclient update -s Accepted -c "$commit" -h "$hash"
17 done