--- svn2cvs 2024/10/01 02:38:00 1.2 +++ svn2cvs 2024/10/17 09:56:18 1.5 @@ -18,7 +18,7 @@ exec -ignorestderr svn up "$svn" -r "$re exec -ignorestderr cvs up -d "$cvs" proc rescan {path prefix} { - global svn cvs cache old + global svn cvs cache old added foreach name [glob -tails -nocomplain -directory "$path" *] { if { [file type "$path/$name"] == "directory" } { if { ! [file exists "$cvs/$prefix/$name"] } { @@ -57,7 +57,7 @@ proc rescan {path prefix} { } proc remove_left {path prefix} { - global svn cvs cache old + global svn cvs cache old removed foreach name [glob -tails -nocomplain -directory "$path" *] { if { [file type "$path/$name"] == "directory" } { if { "$name" != "CVS" } { @@ -81,10 +81,10 @@ remove_left "$cvs" "" cd "$cvs" if { "$added" != "" } { - exec -ignorestderr cvs add \"[join $added "\",\""]\" + eval exec -ignorestderr cvs add \"[join $added "\" \""]\" >/dev/stdout 2>@1 } if { "$removed" != "" } { - exec -ignorestderr cvs rm \"[join $removed "\",\""]\" + eval exec -ignorestderr cvs rm \"[join $added "\" \""]\" >/dev/stdout 2>@1 } exec -ignorestderr cvs ci -m "$log" cd "$old"