Skip to content

Commit 5d03afa

Browse files
committed
Reduced the number of htmlization URLs visited further.
- Legacy-Id: 17999
1 parent a5ccd3a commit 5d03afa

2 files changed

Lines changed: 27 additions & 8 deletions

File tree

bin/commitlog

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
#!/bin/bash
2-
# -*- indent-with-tabs: 1 -*-
3-
date
42
cur=$(svn info | awk '/^Revision:/ { print $2 }')
5-
svn log $PWD -r ${2:-HEAD}:${1:-$((cur-100))} \
3+
# List recent commits, extract revision numbers, stop at release, and grab the last revision
4+
# - get svn log, looking backwards from HEAD
5+
# - stop on 'Set version info ...'
6+
# - filter out revision lines
7+
# - grab the first field
8+
# - grab the last line
9+
# - remove the leading 'r'
10+
rev=$(svn log $PWD -r ${2:-HEAD}:${1:-$((cur-100))} \
11+
| sed -r -n -e '1,/^Set version info( and settings)?( back)? to (development|release)/p' \
12+
| egrep '^r[0-9]+ \|' \
13+
| cut -d ' ' -f 1 \
14+
| tail -n 1 \
15+
| sed 's/^r//')
16+
17+
# Grab commit log lines from just after the start rev, going forwards, and reformat
18+
# - Get svn log entries, starting with the earliest
19+
# - Filter out dividing lines and revision/committer/date lines, keeping the messages
20+
# - Insert leading asterisks: ' * ' at the front of the first line in each text block
21+
# - Unwrap lines that start with unindented text
22+
# - Do line folding at column 76
23+
# - Indent any unindented lines 4 spaces
24+
# - Add blank lines in front of log entries
25+
svn log $PWD -r $((rev+2)):${2:-HEAD} \
626
| sed -r 's/^(----------|r[0-9]+).*$/\n/' \
7-
| sed '/./,/^$/!d' \
827
| sed '1,/./s/^/ * /;/^$/,/./s/^/ * /;/^ \* $/d' \
928
| sed -e :a -e '$!N;s/\n([A-Za-z0-9])/ \\1/;ta' -e 'P;D' \
10-
| head -n -1 \
11-
| fold -sw1000 \
12-
| tac \
1329
| fold -sw76 \
1430
| sed -r 's/^([^ ].*)$/ &/' \
1531
| sed -r 's/^ \* /\n * /'

bin/test-crawl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env python
2+
# -*- indent-with-tabs: 0 -*-
23
# Copyright The IETF Trust 2013-2019, All Rights Reserved
34

5+
46
import os, sys, re, datetime, argparse, traceback, json, subprocess
57
import html5lib
68
import random
@@ -225,7 +227,8 @@ def skip_url(url):
225227
r"draft-touch-msword-template-v2\.0",
226228

227229
# Skip most html conversions, not worth the time
228-
"^/doc/html/draft-[0-9ac-z][0-9b-z].*",
230+
"^/doc/html/draft-[0-9ac-z]",
231+
"^/doc/html/draft-b[0-9b-z]",
229232
"^/doc/html/charter-.*",
230233
"^/doc/html/status-.*",
231234
"^/doc/html/rfc.*",

0 commit comments

Comments
 (0)