Show More
@@ -16,7 +16,6 b' from __future__ import absolute_import' | |||||
16 | import difflib |
|
16 | import difflib | |
17 | import errno |
|
17 | import errno | |
18 | import re |
|
18 | import re | |
19 | import sys |
|
|||
20 | import textwrap |
|
19 | import textwrap | |
21 |
|
20 | |||
22 | from mercurial.i18n import _ |
|
21 | from mercurial.i18n import _ | |
@@ -55,7 +54,7 b' DEFAULT_SECTIONS = [' | |||||
55 | ] |
|
54 | ] | |
56 |
|
55 | |||
57 | RE_DIRECTIVE = re.compile('^\.\. ([a-zA-Z0-9_]+)::\s*([^$]+)?$') |
|
56 | RE_DIRECTIVE = re.compile('^\.\. ([a-zA-Z0-9_]+)::\s*([^$]+)?$') | |
58 | RE_ISSUE = r'\bissue ?[0-9]{4,6}(?![0-9])\b' |
|
57 | RE_ISSUE = br'\bissue ?[0-9]{4,6}(?![0-9])\b' | |
59 |
|
58 | |||
60 | BULLET_SECTION = _('Other Changes') |
|
59 | BULLET_SECTION = _('Other Changes') | |
61 |
|
60 | |||
@@ -631,7 +630,7 b' def releasenotes(ui, repo, file_=None, *' | |||||
631 | def debugparsereleasenotes(ui, path, repo=None): |
|
630 | def debugparsereleasenotes(ui, path, repo=None): | |
632 | """parse release notes and print resulting data structure""" |
|
631 | """parse release notes and print resulting data structure""" | |
633 | if path == '-': |
|
632 | if path == '-': | |
634 |
text = |
|
633 | text = pycompat.stdin.read() | |
635 | else: |
|
634 | else: | |
636 | with open(path, 'rb') as fh: |
|
635 | with open(path, 'rb') as fh: | |
637 | text = fh.read() |
|
636 | text = fh.read() |
General Comments 0
You need to be logged in to leave comments.
Login now