Codebase list rust-libslirp / ff66372
dev: list-pending-not-NEW: optionally show local pending branches Ximin Luo 2 years ago
1 changed file(s) with 19 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
11 # List pending branches that we have, but that are not in NEW.
22 # You might find it also useful to pipe the output of this into filter-package-in-debian.sh
33 set -e
4
5 if [ "${PENDING_LOCAL}" = 1 ]; then
6
7 git fetch origin --prune
8 comm -13 \
9 <(curl -s https://ftp-master.debian.org/new.html | \
10 grep '<td class="package">rust-' | \
11 sed -nre 's/.*\brust-([-A-Za-z0-9.]+)\b.*/\1/gp' | \
12 sort) \
13 <(git branch --list 'pending-*' --format='%(refname)' | \
14 sed -e 's,refs/heads/pending-,,g' | \
15 sort) | \
16 while read x; do
17 echo $x $(git show "pending-$x:src/$x/debian/changelog" | dpkg-parsechangelog -l- -SVersion)
18 done
19
20 else
421
522 git fetch origin --prune
623 comm -13 \
1431 while read x; do
1532 echo $x $(git show "origin/pending-$x:src/$x/debian/changelog" | dpkg-parsechangelog -l- -SVersion)
1633 done
34
35 fi