Check-in [c5e9fa8d70]
Not logged in
Overview

SHA1 Hash:c5e9fa8d70dd43b0406ee73bca9bc23be3f510b5
Date: 2008-02-27 04:14:19
User: aku
Comment:Added options --tempdir, -t to redirect the importer to a user-specified directory for temp files and directories.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified tools/cvs2fossil/lib/c2f_option.tcl from [807a183086] to [737f972b12].

@@ -18,10 +18,11 @@
 # # ## ### ##### ######## ############# #####################
 ## Requirements
 
 package require Tcl 8.4                               ; # Required runtime.
 package require snit                                  ; # OO system.
+package require fileutil                              ; # Setting a tempdir.
 package require vc::tools::trouble                    ; # Error reporting.
 package require vc::tools::log                        ; # User feedback.
 package require vc::tools::mem                        ; # Memory tracking.
 package require vc::tools::misc                       ; # Misc. path reformatting.
 package require vc::fossil::import::cvs::fossil       ; # Fossil repository access
@@ -90,10 +91,12 @@
 		--watch                     { cyclebreaker watch  [Value arguments] }
 		--statesavequeriesto        { state savequeriesto [Value arguments] }
 		--fossil                    { fossil setlocation  [Value arguments] }
 		--memory-limit              { mem::setlimit [Value arguments] }
 		--memory-track              { mem::track }
+		-t                          -
+		--tempdir                   { fileutil::tempdir [Value arguments] }
 		default {
 		    Usage $badoption$option\n$gethelp
 		}
 	    }
 	}
@@ -163,15 +166,26 @@
 	trouble info ""
 	trouble info "    --fossil PATH              Specify where to find the fossil execu-"
 	trouble info "                               table if cv2fossil could not find it in"
 	trouble info "                               the PATH."
 	trouble info ""
+	trouble info "    --tempdir PATH, -t PATH    Specify the path where temporary files"
+	trouble info "                               and directories shall go."
+	trouble info ""
 	trouble info "  Debug options"
 	trouble info ""
 	trouble info "    --dots PATH                Write the changeset graphs before, after,"
 	trouble info "                               and during breaking the of cycles to the"
-	trouble info "                               direcotry PATH, using GraphViz's dot format"
+	trouble info "                               directory PATH, using GraphViz's dot format"
+	trouble info ""
+	trouble info "    --memory-track             Activate internal tracking of memory usage."
+	trouble info "                               Requires execution of cvs2fossil by a tclsh"
+	trouble info "                               which provides the \[memory\] command."
+	trouble info ""
+	trouble info "    --memory-limit BYTES       Like --memory-track, but additionally imposes"
+	trouble info "                               a limit on the maximual amount of memory the"
+	trouble info "                               application is allowed to use."
 	trouble info ""
 
 	# --project, --cache
 	# ...
 	return