Diff
Not logged in

Differences From:

File tools/cvs2fossil/lib/c2f_pimport.tcl part of check-in [66235f2430] - Updated the copyright information of all files touched in the new year. by aku on 2008-02-06 05:04:12. Also file tools/cvs2fossil/lib/c2f_pimport.tcl part of check-in [6b78df3861] - Merge in changes from Andreas's branch. by drh on 2008-02-08 21:52:21. [view]

To:

File tools/cvs2fossil/lib/c2f_pimport.tcl part of check-in [be2f99e6a4] - Merge with aku's branch. by drh on 2008-02-13 14:44:50. Also file tools/cvs2fossil/lib/c2f_pimport.tcl part of check-in [0d02fe6c7a] - Report destination file for repository, and fix bug with the naming of the destination triggered when importing a repository in toto. by aku on 2008-02-12 04:25:34. [view]

@@ -104,9 +104,15 @@
 
 	    # 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