Fossil SCM

Extended log writing to handle multi-line log messages.

aku 2008-01-30 08:20 trunk
Commit 81a297a66a31822122fe78af60018b39880a4f1d
--- tools/cvs2fossil/lib/log.tcl
+++ tools/cvs2fossil/lib/log.tcl
@@ -136,11 +136,11 @@
136136
}
137137
138138
# Write handler. Each message is a line.
139139
140140
proc OUT/write {system text} {
141
- puts "$system $text"
141
+ puts "$system [join [split $text \n] "\n$system "]"
142142
return
143143
}
144144
145145
# Progress handler. Uses \r to return to the beginning of the
146146
# current line without advancing.
147147
--- tools/cvs2fossil/lib/log.tcl
+++ tools/cvs2fossil/lib/log.tcl
@@ -136,11 +136,11 @@
136 }
137
138 # Write handler. Each message is a line.
139
140 proc OUT/write {system text} {
141 puts "$system $text"
142 return
143 }
144
145 # Progress handler. Uses \r to return to the beginning of the
146 # current line without advancing.
147
--- tools/cvs2fossil/lib/log.tcl
+++ tools/cvs2fossil/lib/log.tcl
@@ -136,11 +136,11 @@
136 }
137
138 # Write handler. Each message is a line.
139
140 proc OUT/write {system text} {
141 puts "$system [join [split $text \n] "\n$system "]"
142 return
143 }
144
145 # Progress handler. Uses \r to return to the beginning of the
146 # current line without advancing.
147

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button