##// END OF EJS Templates
relnotes: more improvements
av6 -
r41659:530d211a default
parent child Browse files
Show More
@@ -14,6 +14,7 b' rules = {'
14 14 r"\(issue": 100,
15 15 r"\(BC\)": 100,
16 16 r"\(API\)": 100,
17 r"\(SEC\)": 100,
17 18 # core commands, bump up
18 19 r"(commit|files|log|pull|push|patch|status|tag|summary)(|s|es):": 20,
19 20 r"(annotate|alias|branch|bookmark|clone|graft|import|verify).*:": 20,
@@ -21,6 +22,7 b' rules = {'
21 22 r"(mq|shelve|rebase):": 20,
22 23 # newsy
23 24 r": deprecate": 20,
25 r": new.*(extension|flag|module)": 10,
24 26 r"( ability|command|feature|option|support)": 10,
25 27 # experimental
26 28 r"hg-experimental": 20,
@@ -29,22 +31,23 b' rules = {'
29 31 # bug-like?
30 32 r"(fix|don't break|improve)": 7,
31 33 r"(not|n't|avoid|fix|prevent).*crash": 10,
34 r"vulnerab": 10,
32 35 # boring stuff, bump down
33 36 r"^contrib": -5,
34 37 r"debug": -5,
35 38 r"help": -5,
39 r"minor": -5,
36 40 r"(doc|metavar|bundle2|obsolete|obsmarker|rpm|setup|debug\S+:)": -15,
37 41 r"(check-code|check-commit|check-config|import-checker)": -20,
38 42 r"(flake8|lintian|pyflakes|pylint)": -20,
39 43 # cleanups and refactoring
40 r"(cleanup|white ?space|spelling|quoting)": -20,
44 r"(clean ?up|white ?space|spelling|quoting)": -20,
41 45 r"(flatten|dedent|indent|nesting|unnest)": -20,
42 46 r"(typo|hint|note|comment|TODO|FIXME)": -20,
43 47 r"(style:|convention|one-?liner)": -20,
44 r"_": -10,
45 48 r"(argument|absolute_import|attribute|assignment|mutable)": -15,
46 49 r"(scope|True|False)": -10,
47 r"(unused|useless|unnecessary|superfluous|duplicate|deprecated)": -10,
50 r"(unused|useless|unnecessar|superfluous|duplicate|deprecated)": -10,
48 51 r"(redundant|pointless|confusing|uninitialized|meaningless|dead)": -10,
49 52 r": (drop|remove|delete|rip out)": -10,
50 53 r": (inherit|rename|simplify|naming|inline)": -10,
@@ -54,9 +57,12 b' rules = {'
54 57 r": (move|extract) .* (to|into|from|out of)": -20,
55 58 r": implement ": -5,
56 59 r": use .* implementation": -20,
60 r": use .* instead of": -20,
61 # code
62 r"_": -10,
63 r"__": -5,
64 r"\(\)": -5,
57 65 r"\S\S\S+\.\S\S\S\S+": -5,
58 r": use .* instead of": -20,
59 r"__": -5,
60 66 # dumb keywords
61 67 r"\S+/\S+:": -10,
62 68 r"\S+\.\S+:": -10,
@@ -92,6 +98,15 b' groupings = ['
92 98 (r"shelve|unshelve", "extensions"),
93 99 ]
94 100
101 def wikify(desc):
102 desc = desc.replace("(issue", "(Bts:issue")
103 desc = re.sub(r"\b([0-9a-f]{12})\b", r"Cset:\1", desc)
104 # stop ParseError from being recognized as a (nonexistent) wiki page
105 desc = re.sub(r" ([A-Z][a-z]+[A-Z][a-z]+)\b", r" !\1", desc)
106 # prevent wiki markup of magic methods
107 desc = re.sub(r"\b(\S*__\S*)\b", r"`\1`", desc)
108 return desc
109
95 110 def main():
96 111 desc = "example: %(prog)s 4.7.2 --stoprev 4.8rc0"
97 112 ap = argparse.ArgumentParser(description=desc)
@@ -148,10 +163,8 b' def main():'
148 163 if re.search(rule, desc):
149 164 score += val
150 165
151 desc = desc.replace("(issue", "(Bts:issue")
152
153 166 if score >= cutoff:
154 commits.append(desc)
167 commits.append(wikify(desc))
155 168 # Group unflagged notes.
156 169 groups = {}
157 170 bcs = []
@@ -266,7 +266,6 b''
266 266 * diff: disable diff.noprefix option for diffstat (Bts:issue5759)
267 267 * evolution: make reporting of new unstable changesets optional
268 268 * extdata: abort if external command exits with non-zero status (BC)
269 * fancyopts: add early-options parser compatible with getopt()
270 269 * graphlog: add another graph node type, unstable, using character "*" (BC)
271 270 * hgdemandimport: use correct hyperlink to python-bug in comments (Bts:issue5765)
272 271 * httppeer: add support for tracing all http request made by the peer
@@ -277,17 +276,18 b''
277 276 * morestatus: don't crash with different drive letters for repo.root and CWD
278 277 * outgoing: respect ":pushurl" paths (Bts:issue5365)
279 278 * remove: print message for each file in verbose mode only while using '-A' (BC)
280 * rewriteutil: use precheck() in uncommit and amend commands
281 279 * scmutil: don't try to delete origbackup symlinks to directories (Bts:issue5731)
282 280 * sshpeer: add support for request tracing
283 281 * subrepo: add config option to reject any subrepo operations (SEC)
284 282 * subrepo: disable git and svn subrepos by default (BC) (SEC)
283 * subrepo: disallow symlink traversal across subrepo mount point (SEC)
285 284 * subrepo: extend config option to disable subrepos by type (SEC)
286 285 * subrepo: handle 'C:' style paths on the command line (Bts:issue5770)
287 286 * subrepo: use per-type config options to enable subrepos
288 287 * svnsubrepo: check if subrepo is missing when checking dirty state (Bts:issue5657)
289 288 * test-bookmarks-pushpull: stabilize for Windows
290 289 * test-run-tests: stabilize the test (Bts:issue5735)
290 * tests: show symlink traversal across subrepo mount point (SEC)
291 291 * tr-summary: keep a weakref to the unfiltered repository
292 292 * unamend: fix command summary line
293 293 * uncommit: unify functions _uncommitdirstate and _unamenddirstate to one
General Comments 0
You need to be logged in to leave comments. Login now