Fossil SCM

Report destination file for repository, and fix bug with the naming of the destination triggered when importing a repository in toto.

aku 2008-02-12 04:25 trunk
Commit 0d02fe6c7a8ed0f08e3eced93cc47a2235792c26
--- tools/cvs2fossil/lib/c2f_fossil.tcl
+++ tools/cvs2fossil/lib/c2f_fossil.tcl
@@ -140,10 +140,12 @@
140140
Do rebuild [::file nativename $myrepository]
141141
142142
::file rename -force $myrepository $destination
143143
::file delete -force $myworkspace
144144
$self destroy
145
+
146
+ log write 2 fossil {destination $destination}
145147
return
146148
}
147149
148150
# # ## ### ##### ######## #############
149151
##
150152
--- tools/cvs2fossil/lib/c2f_fossil.tcl
+++ tools/cvs2fossil/lib/c2f_fossil.tcl
@@ -140,10 +140,12 @@
140 Do rebuild [::file nativename $myrepository]
141
142 ::file rename -force $myrepository $destination
143 ::file delete -force $myworkspace
144 $self destroy
 
 
145 return
146 }
147
148 # # ## ### ##### ######## #############
149 ##
150
--- tools/cvs2fossil/lib/c2f_fossil.tcl
+++ tools/cvs2fossil/lib/c2f_fossil.tcl
@@ -140,10 +140,12 @@
140 Do rebuild [::file nativename $myrepository]
141
142 ::file rename -force $myrepository $destination
143 ::file delete -force $myworkspace
144 $self destroy
145
146 log write 2 fossil {destination $destination}
147 return
148 }
149
150 # # ## ### ##### ######## #############
151 ##
152
--- tools/cvs2fossil/lib/c2f_pimport.tcl
+++ tools/cvs2fossil/lib/c2f_pimport.tcl
@@ -103,11 +103,17 @@
103103
$rstate destroy
104104
105105
# At last copy the temporary repository file to its final
106106
# destination and release the associated memory.
107107
108
- $fossil finalize [$project base].fsl
108
+ set destination [$project base]
109
+ if {$destination eq ""} {
110
+ set destination [file tail [repository base?]]
111
+ }
112
+ append destination .fsl
113
+
114
+ $fossil finalize $destination
109115
}
110116
111117
# This does not live beyond the pass. We use the state for the
112118
# data despite its transient nature to keep the memory
113119
# requirements down.
114120
--- tools/cvs2fossil/lib/c2f_pimport.tcl
+++ tools/cvs2fossil/lib/c2f_pimport.tcl
@@ -103,11 +103,17 @@
103 $rstate destroy
104
105 # At last copy the temporary repository file to its final
106 # destination and release the associated memory.
107
108 $fossil finalize [$project base].fsl
 
 
 
 
 
 
109 }
110
111 # This does not live beyond the pass. We use the state for the
112 # data despite its transient nature to keep the memory
113 # requirements down.
114
--- tools/cvs2fossil/lib/c2f_pimport.tcl
+++ tools/cvs2fossil/lib/c2f_pimport.tcl
@@ -103,11 +103,17 @@
103 $rstate destroy
104
105 # At last copy the temporary repository file to its final
106 # destination and release the associated memory.
107
108 set destination [$project base]
109 if {$destination eq ""} {
110 set destination [file tail [repository base?]]
111 }
112 append destination .fsl
113
114 $fossil finalize $destination
115 }
116
117 # This does not live beyond the pass. We use the state for the
118 # data despite its transient nature to keep the memory
119 # requirements down.
120

Keyboard Shortcuts

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