| | @@ -0,0 +1,43 @@ |
| 1 | +## -*- tcl -*-
|
| 2 | +# # ## ### ##### ######## ############# #####################
|
| 3 | +## Copyright (c) 2008 Andreas Kupries.
|
| 4 | +#
|
| 5 | +# This software is licensed as described in the file LICENSE, which
|
| 6 | +# you should have received as part of this distribution.
|
| 7 | +#
|
| 8 | +# This software consists of voluntary contributions made by many
|
| 9 | +# individuals. For exact contribution history, see the revision
|
| 10 | +# history and logs, available at http://fossil-scm.hwaci.com/fossil
|
| 11 | +# # ## ### ##### ######## ############# #####################
|
| 12 | +
|
| 13 | +## Track the state of revision import. Essentially maps lines of
|
| 14 | +## developments to their workspace state.
|
| 15 | +
|
| 16 | +# # ## ### ##### ######## ############# #### # ## ### #truct::list ; # List assignment
|
| 17 | +package require vc::fossil::import::cvs::wsstate ; # Workspace state
|
| 18 | +package require vc::fossil::import::cvs::integrity ; # State integrity checks.
|
| 19 | +package require vc::tools::log ; # User feedback.
|
| 20 | +package require vc::tools::trouble ; # Error reporting.
|
| 21 | +
|
| 22 | +# # ## ### ##### ######## ############# #####################
|
| 23 | +##
|
| 24 | +
|
| 25 | +snit::type ::vc::fossil::import::cvs::ristate {
|
| 26 | + # # ## ### ##### ######## #############
|
| 27 | + ## Public API
|
| 28 | +
|
| 29 | + constructor {} {
|
| 30 | + # Start with an empty state
|
| 31 | + return
|
| 32 | + }
|
| 33 | +
|
| 34 | + method new {lod {parentlod {}}} {
|
| 35 | + # Create the workspace stat{}}} {
|
| 36 | + # Create a workspac
|
| 37 | + # (LOD). If a parent LOstate
|
| 38 | + # inherit the current state of the parent.
|
| 39 | +
|
| 40 | + log write 8 ristate {Open workspace state for LOD "$lod"}
|
| 41 | +
|
| 42 | + integrity asseadd [$pwss get]
|
| 43 | + $wss defid |