From bd40ff1e65b596da52cbdd9bab3f775957e09bbc Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Sat, 20 Feb 2016 19:04:39 +1100 Subject: [PATCH] * lib/utils.exp (diff): Replace calls to verbose followed by send_log with a single call to verbose -log. Remove additional newlines from the log messages. --- ChangeLog | 6 ++++++ lib/utils.exp | 15 ++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4517e27..ba363ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2016-02-20 Ben Elliston + * lib/utils.exp (diff): Replace calls to verbose followed by + send_log with a single call to verbose -log. Remove additional + newlines from the log messages. + +2016-02-20 Ben Elliston + * lib/utils.exp (getdirs): Ignore .git and .svn directories. 2016-02-20 Ben Elliston diff --git a/lib/utils.exp b/lib/utils.exp index fccb7e6..314fc2f 100644 --- a/lib/utils.exp +++ b/lib/utils.exp @@ -256,7 +256,7 @@ proc diff { file_1 file_2 } { return 0 } - verbose "# Diff'ing: ${file_1} ${file_2}\n" 1 + verbose "# Diff'ing: ${file_1} ${file_2}" 1 set list_a "" while { [gets ${file_a} line] != ${eof} } { @@ -281,17 +281,10 @@ proc diff { file_1 file_2 } { set line_a [lindex ${list_a} ${i}] set line_b [lindex ${list_b} ${i}] - # verbose "\t${file_1}: ${i}: ${line_a}\n" 3 - # verbose "\t${file_2}: ${i}: ${line_b}\n" 3 if {[string compare ${line_a} ${line_b}]} { - verbose "line #${i}\n" 2 - verbose "\< ${line_a}\n" 2 - verbose "\> ${line_b}\n" 2 - - send_log "line #${i}\n" - send_log "\< ${line_a}\n" - send_log "\> ${line_b}\n" - + verbose -log "line #${i}" 2 + verbose -log "\< ${line_a}" 2 + verbose -log "\> ${line_b}" 2 set differences -1 } } -- 2.7.4