| | @@ -5,21 +5,21 @@ |
| 5 | 5 | # Requirements |
| 6 | 6 | |
| 7 | 7 | package require Tcl 8.4 |
| 8 | 8 | package require vc::tools::log ; # User feedback |
| 9 | 9 | |
| 10 | | -namespace eval ::fossil { |
| 10 | +namespace eval ::vc::fossil::ws { |
| 11 | 11 | vc::tools::log::system fossil |
| 12 | 12 | namespace import ::vc::tools::log::write |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | # ----------------------------------------------------------------------------- |
| 16 | 16 | # API |
| 17 | 17 | |
| 18 | 18 | # Define repository file, and connect to workspace in CWD. |
| 19 | 19 | |
| 20 | | -proc ::fossil::new {} { |
| 20 | +proc ::vc::fossil::ws::new {} { |
| 21 | 21 | variable fr [file normalize [fileutil::tempfile import2_fsl_rp_]] |
| 22 | 22 | variable fossil |
| 23 | 23 | |
| 24 | 24 | # pwd = workspace |
| 25 | 25 | exec $fossil new $fr ; # create and |
| | @@ -30,17 +30,17 @@ |
| 30 | 30 | return $fr |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | # Move generated fossil repository to final destination |
| 34 | 34 | |
| 35 | | -proc ::fossil::destination {path} { |
| 35 | +proc ::vc::fossil::ws::destination {path} { |
| 36 | 36 | variable fr |
| 37 | 37 | file rename $fr $path |
| 38 | 38 | return |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | | -namespace eval ::fossil { |
| 41 | +namespace eval ::vc::fossil::ws { |
| 42 | 42 | # Repository file |
| 43 | 43 | variable fr {} |
| 44 | 44 | |
| 45 | 45 | # Fossil application |
| 46 | 46 | variable fossil [auto_execok fossil] |
| | @@ -49,19 +49,19 @@ |
| 49 | 49 | # exact command used). And the file the data goes to. |
| 50 | 50 | variable debugcommit 0 |
| 51 | 51 | variable dcfile {} |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | | -proc ::fossil::debugcommit {flag} { |
| 54 | +proc ::vc::fossil::ws::debugcommit {flag} { |
| 55 | 55 | variable debugcommit $flag |
| 56 | 56 | if {$debugcommit} { |
| 57 | 57 | variable dcfile [file normalize cvs2fossil_commit.tcl] |
| 58 | 58 | } |
| 59 | 59 | return |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | | -proc ::fossil::commit {break appname nosign meta ignore} { |
| 62 | +proc ::vc::fossil::ws::commit {break appname nosign meta ignore} { |
| 63 | 63 | variable fossil |
| 64 | 64 | variable lastuuid |
| 65 | 65 | variable debugcommit |
| 66 | 66 | variable dcfile |
| 67 | 67 | |
| | @@ -148,14 +148,14 @@ |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | # ----------------------------------------------------------------------------- |
| 151 | 151 | # Internal helper commands |
| 152 | 152 | |
| 153 | | -proc ::fossil::IGNORE {ignore path} { |
| 153 | +proc ::vc::fossil::ws::IGNORE {ignore path} { |
| 154 | 154 | return [uplevel #0 [linsert $ignore end $path]] |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | # ----------------------------------------------------------------------------- |
| 158 | 158 | # Ready |
| 159 | 159 | |
| 160 | | -package provide fossil 1.0 |
| 160 | +package provide vc::fossil::ws 1.0 |
| 161 | 161 | return |
| 162 | 162 | |