Fossil SCM

Disabled check for control characters in the log message. Allowing this for the moment, lets see if we run into trouble later on. Further reworked the check of symbol names, disallow forward slashs only at end. Found legal tags containing forward slashs in the middle.

aku 2007-10-24 07:54 trunk
Commit fa643aa91d93c6c3ffeb44dd14e267db8c8139cf
--- tools/cvs2fossil/lib/rcsparser.tcl
+++ tools/cvs2fossil/lib/rcsparser.tcl
@@ -76,11 +76,14 @@
7676
}
7777
7878
proc Symbols {} {
7979
RequiredLiteral symbols
8080
while {[Ident -> symbol]} {
81
- if {![regexp {^\d*[^/,.:;@$]([^/,.:;@$]*\d*)*$} $symbol]} {
81
+ if {
82
+ ![regexp {^\d*[^,.:;@$]([^,.:;@$]*\d*)*$} $symbol] ||
83
+ [string match */ $symbol]
84
+ } {
8285
Rewind
8386
Bad {symbol name}
8487
}
8588
RequiredNumber -> rev
8689
Call deftag $symbol $rev
@@ -220,12 +223,12 @@
220223
proc DeltaTexts {} {
221224
while {[OptionalNumber -> rev]} {
222225
RequiredLiteral log
223226
RequiredString -> cmsg
224227
if {[regexp {[\000-\010\013\014\016-\037]} $cmsg]} {
225
- Rewind
226
- Bad "log message for $rev contains at least one control character"
228
+ #Rewind
229
+ #Bad "log message for $rev contains at least one control character"
227230
}
228231
229232
RequiredLiteral text
230233
RequiredStringRange -> delta
231234
Call extend $rev $cmsg $delta
232235
--- tools/cvs2fossil/lib/rcsparser.tcl
+++ tools/cvs2fossil/lib/rcsparser.tcl
@@ -76,11 +76,14 @@
76 }
77
78 proc Symbols {} {
79 RequiredLiteral symbols
80 while {[Ident -> symbol]} {
81 if {![regexp {^\d*[^/,.:;@$]([^/,.:;@$]*\d*)*$} $symbol]} {
 
 
 
82 Rewind
83 Bad {symbol name}
84 }
85 RequiredNumber -> rev
86 Call deftag $symbol $rev
@@ -220,12 +223,12 @@
220 proc DeltaTexts {} {
221 while {[OptionalNumber -> rev]} {
222 RequiredLiteral log
223 RequiredString -> cmsg
224 if {[regexp {[\000-\010\013\014\016-\037]} $cmsg]} {
225 Rewind
226 Bad "log message for $rev contains at least one control character"
227 }
228
229 RequiredLiteral text
230 RequiredStringRange -> delta
231 Call extend $rev $cmsg $delta
232
--- tools/cvs2fossil/lib/rcsparser.tcl
+++ tools/cvs2fossil/lib/rcsparser.tcl
@@ -76,11 +76,14 @@
76 }
77
78 proc Symbols {} {
79 RequiredLiteral symbols
80 while {[Ident -> symbol]} {
81 if {
82 ![regexp {^\d*[^,.:;@$]([^,.:;@$]*\d*)*$} $symbol] ||
83 [string match */ $symbol]
84 } {
85 Rewind
86 Bad {symbol name}
87 }
88 RequiredNumber -> rev
89 Call deftag $symbol $rev
@@ -220,12 +223,12 @@
223 proc DeltaTexts {} {
224 while {[OptionalNumber -> rev]} {
225 RequiredLiteral log
226 RequiredString -> cmsg
227 if {[regexp {[\000-\010\013\014\016-\037]} $cmsg]} {
228 #Rewind
229 #Bad "log message for $rev contains at least one control character"
230 }
231
232 RequiredLiteral text
233 RequiredStringRange -> delta
234 Call extend $rev $cmsg $delta
235

Keyboard Shortcuts

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