subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <...@daniel.shahaf.name>
Subject Re: Display outstanding backported fixes for each release?
Date Thu, 03 Jan 2019 18:50:50 GMT
Daniel Shahaf wrote on Thu, Jan 03, 2019 at 17:38:04 +0000:
> % ./upcoming.py | tail -46
> ------------------------------------------------------------------------
> r1847610 | svn-role | 2018-11-28 04:00:29 +0000 (Wed, 28 Nov 2018)
> 
> Merge the r1847181 group from trunk:
> 
>  * r1847181, r1847182, r1847188, r1847264
>    Fix issue SVN-4792: Foreign repo copy of file adding mergeinfo.
>    Justification:
>      We don't want bogus mergeinfo.
>    Votes:
>      +1: julianfoad, brane, rhuijben
> ------------------------------------------------------------------------
> r1849266 | svn-role | 2018-12-19 04:00:55 +0000 (Wed, 19 Dec 2018)
> 
> Merge the r1847572 group from trunk:
> 
>  * r1847572, r1847596
>    fsfs: Fix SVN-4791, an issue with the DAG open_path() that was causing
>    unexpected SVN_ERR_FS_NOT_DIRECTORY errors when attempting to open a path
>    with `open_path_node_only | open_path_allow_null` flags.
>    Justification:
>      Some valid FSFS read operations errored out. This could break some
>      end-user operations like 'update'.
>    Votes:
>      +1: julianfoad, brane, stefan2
> ------------------------------------------------------------------------

And to go along with that:

[[[
% cat escape.py
#!/usr/bin/env python3

"""HTML-escape and linkify"""

import fileinput
import html
import re

revision_numbers = re.compile(r'\br(\d+)')
issue_references = re.compile(r'((?:SVN-|[Ii]ssue [#]?)(\d+))')

for line in fileinput.input():
    line = html.escape(line)
    line = revision_numbers.sub(r'<a href="https://svn.apache.org/r\1">r\1</a>',
line)
    line = issue_references.sub(r'<a href="/issue-\2">\1</a>', line)
    print(line, end='')
]]]

That's a stdin-to-stdout filter that converts the text output to HTML, suitable
for inclusion in the Web site.

Cheers,

Daniel

Mime
View raw message