Check-in [0d02fe6c7a]
Not logged in
Overview

SHA1 Hash:0d02fe6c7a8ed0f08e3eced93cc47a2235792c26
Date: 2008-02-12 04:25:34
User: aku
Comment:Report destination file for repository, and fix bug with the naming of the destination triggered when importing a repository in toto.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified tools/cvs2fossil/lib/c2f_fossil.tcl from [7c35d62cbf] to [3f0dcfd428].

@@ -140,10 +140,12 @@
 	Do rebuild [::file nativename $myrepository]
 
 	::file rename -force $myrepository $destination
 	::file delete -force $myworkspace
 	$self destroy
+
+	log write 2 fossil {destination $destination}
 	return
     }
 
     # # ## ### ##### ######## #############
     ##

Modified tools/cvs2fossil/lib/c2f_pimport.tcl from [73e5e1d767] to [2e961c0798].

@@ -103,11 +103,17 @@
 	    $rstate destroy
 
 	    # At last copy the temporary repository file to its final
 	    # destination and release the associated memory.
 
-	    $fossil finalize [$project base].fsl
+	    set destination [$project base]
+	    if {$destination eq ""} {
+		set destination [file tail [repository base?]]
+	    }
+	    append destination .fsl
+
+	    $fossil finalize $destination
 	}
 
 	# This does not live beyond the pass. We use the state for the
 	# data despite its transient nature to keep the memory
 	# requirements down.