dev: list-pending-not-NEW: optionally show local pending branches
Ximin Luo
2 years ago
1 | 1 | # List pending branches that we have, but that are not in NEW. |
2 | 2 | # You might find it also useful to pipe the output of this into filter-package-in-debian.sh |
3 | 3 | 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 | |
4 | 21 | |
5 | 22 | git fetch origin --prune |
6 | 23 | comm -13 \ |
14 | 31 | while read x; do |
15 | 32 | echo $x $(git show "origin/pending-$x:src/$x/debian/changelog" | dpkg-parsechangelog -l- -SVersion) |
16 | 33 | done |
34 | ||
35 | fi |