aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-05-29 11:21:17 -0400
committerNick Mathewson <nickm@torproject.org>2014-05-29 11:21:23 -0400
commit413a442f57abb084499d1aa363aee1f8a0b53ad8 (patch)
treef6c0389c24f8c3d13aaf30894aaa79a455cd019c /scripts
parenta6688f9cbb930ad139a7f3886684fcadeec59d30 (diff)
downloadtor-413a442f57abb084499d1aa363aee1f8a0b53ad8.tar
tor-413a442f57abb084499d1aa363aee1f8a0b53ad8.tar.gz
Start on the 0.2.5.5-alpha changelog.
I've copied the entries from changes/, labeled the ones that also appeared in 0.2.4.22, sorted them lightly with a python script (added to maint), and combined sections with the same name. I didn't combine sections without a description (e.g. "Minor bugfixes:"), since we'll probably add a description to those.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/sortChanges.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/scripts/maint/sortChanges.py b/scripts/maint/sortChanges.py
new file mode 100755
index 000000000..f70490bad
--- /dev/null
+++ b/scripts/maint/sortChanges.py
@@ -0,0 +1,40 @@
+#!/usr/bin/python
+
+import re
+import sys
+
+def fetch(fn):
+ with open(fn) as f:
+ s = f.read()
+ s = "%s\n" % s.rstrip()
+ return s
+
+def score(s):
+ m = re.match(r'^ +o (.*)', s)
+ if not m:
+ print >>sys.stderr, "Can't score %r"%s
+ lw = m.group(1).lower()
+ if lw.startswith("major feature"):
+ score = 0
+ elif lw.startswith("major bug"):
+ score = 1
+ elif lw.startswith("major"):
+ score = 2
+ elif lw.startswith("minor feature"):
+ score = 10
+ elif lw.startswith("minor bug"):
+ score = 11
+ elif lw.startswith("minor"):
+ score = 12
+ else:
+ score = 100
+
+ return (score, lw, s)
+
+
+changes = [ score(fetch(fn)) for fn in sys.argv[1:] if not fn.endswith('~') ]
+
+changes.sort()
+
+for _, _, s in changes:
+ print s