<pre style='margin:0'>
raimue pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/fc45aaf5d0937aa7adc1e844091a6241d9826ae0">https://github.com/macports/macports-base/commit/fc45aaf5d0937aa7adc1e844091a6241d9826ae0</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new fc45aaf port lint: warn if obsolete $Id$ keyword is used
</span>fc45aaf is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fc45aaf5d0937aa7adc1e844091a6241d9826ae0
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Mon Oct 31 18:20:52 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> port lint: warn if obsolete $Id$ keyword is used
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This will warn if the $Id$ occurs anywhere in the file.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes https://trac.macports.org/ticket/52757
</span>---
src/port1.0/portlint.tcl | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portlint.tcl b/src/port1.0/portlint.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 3c70d27..0972477 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portlint.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portlint.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -202,13 +202,10 @@ proc portlint::lint_main {args} {
</span> ui_info "OK: Line $lineno has emacs/vim Mode"
incr topline_number
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {($lineno == $topline_number) && ![string match "*\$Id*\$" $line]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_warn "Line $lineno is missing RCS tag (\$Id\$)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[string match "*\$Id*\$" $line]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_warn "Line $lineno is using obsolete RCS tag (\$Id\$)"
</span> incr warnings
<span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {($lineno == $topline_number)} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_info "OK: Line $lineno has RCS tag (\$Id\$)"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set require_blank true
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set require_after "RCS tag"
</span> }
# skip the rest for comment lines (not perfectly accurate...)
</pre><pre style='margin:0'>
</pre>