0000: 23 23 20 2d 2a 2d 20 74 63 6c 20 2d 2a 2d 0a 23 ## -*- tcl -*-.#
0010: 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20 # ## ### #####
0020: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23 ######## #######
0030: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23 ###### #########
0040: 23 23 23 23 23 23 23 23 23 23 23 23 0a 23 23 20 ############.##
0050: 43 6f 70 79 72 69 67 68 74 20 28 63 29 20 32 30 Copyright (c) 20
0060: 30 37 20 41 6e 64 72 65 61 73 20 4b 75 70 72 69 07 Andreas Kupri
0070: 65 73 2e 0a 23 0a 23 20 54 68 69 73 20 73 6f 66 es..#.# This sof
0080: 74 77 61 72 65 20 69 73 20 6c 69 63 65 6e 73 65 tware is license
0090: 64 20 61 73 20 64 65 73 63 72 69 62 65 64 20 69 d as described i
00a0: 6e 20 74 68 65 20 66 69 6c 65 20 4c 49 43 45 4e n the file LICEN
00b0: 53 45 2c 20 77 68 69 63 68 0a 23 20 79 6f 75 20 SE, which.# you
00c0: 73 68 6f 75 6c 64 20 68 61 76 65 20 72 65 63 65 should have rece
00d0: 69 76 65 64 20 61 73 20 70 61 72 74 20 6f 66 20 ived as part of
00e0: 74 68 69 73 20 64 69 73 74 72 69 62 75 74 69 6f this distributio
00f0: 6e 2e 0a 23 0a 23 20 54 68 69 73 20 73 6f 66 74 n..#.# This soft
0100: 77 61 72 65 20 63 6f 6e 73 69 73 74 73 20 6f 66 ware consists of
0110: 20 76 6f 6c 75 6e 74 61 72 79 20 63 6f 6e 74 72 voluntary contr
0120: 69 62 75 74 69 6f 6e 73 20 6d 61 64 65 20 62 79 ibutions made by
0130: 20 6d 61 6e 79 0a 23 20 69 6e 64 69 76 69 64 75 many.# individu
0140: 61 6c 73 2e 20 20 46 6f 72 20 65 78 61 63 74 20 als. For exact
0150: 63 6f 6e 74 72 69 62 75 74 69 6f 6e 20 68 69 73 contribution his
0160: 74 6f 72 79 2c 20 73 65 65 20 74 68 65 20 72 65 tory, see the re
0170: 76 69 73 69 6f 6e 0a 23 20 68 69 73 74 6f 72 79 vision.# history
0180: 20 61 6e 64 20 6c 6f 67 73 2c 20 61 76 61 69 6c and logs, avail
0190: 61 62 6c 65 20 61 74 20 68 74 74 70 3a 2f 2f 66 able at http://f
01a0: 6f 73 73 69 6c 2d 73 63 6d 2e 68 77 61 63 69 2e ossil-scm.hwaci.
01b0: 63 6f 6d 2f 66 6f 73 73 69 6c 0a 23 20 23 20 23 com/fossil.# # #
01c0: 23 20 23 23 23 20 23 23 23 23 23 20 23 23 23 23 # ### ##### ####
01d0: 23 23 23 23 20 23 23 23 23 23 23 23 23 23 23 23 #### ###########
01e0: 23 23 20 23 23 23 23 23 23 23 23 23 23 23 23 23 ## #############
01f0: 23 23 23 23 23 23 23 23 0a 0a 23 23 20 50 61 73 ########..## Pas
0200: 73 20 56 2e 20 54 68 69 73 20 70 61 73 73 20 63 s V. This pass c
0210: 72 65 61 74 65 73 20 74 68 65 20 69 6e 69 74 69 reates the initi
0220: 61 6c 20 73 65 74 20 6f 66 20 70 72 6f 6a 65 63 al set of projec
0230: 74 20 6c 65 76 65 6c 0a 23 23 20 72 65 76 69 73 t level.## revis
0240: 69 6f 6e 73 2c 20 61 6b 61 20 63 68 61 6e 67 65 ions, aka change
0250: 73 65 74 73 2e 20 4c 61 74 65 72 20 70 61 73 73 sets. Later pass
0260: 65 73 20 77 69 6c 6c 20 72 65 66 69 6e 65 20 74 es will refine t
0270: 68 65 6d 2c 20 70 75 74 73 20 74 68 65 6d 0a 23 hem, puts them.#
0280: 23 20 69 6e 74 6f 20 70 72 6f 70 65 72 20 6f 72 # into proper or
0290: 64 65 72 2c 20 73 65 74 20 74 68 65 69 72 20 64 der, set their d
02a0: 65 70 65 6e 64 65 6e 63 69 65 73 2c 20 65 74 63 ependencies, etc
02b0: 2e 0a 0a 23 20 23 20 23 23 20 23 23 23 20 23 23 ...# # ## ### ##
02c0: 23 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 ### ######## ###
02d0: 23 23 23 23 23 23 23 23 23 23 20 23 23 23 23 23 ########## #####
02e0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
02f0: 0a 23 23 20 52 65 71 75 69 72 65 6d 65 6e 74 73 .## Requirements
0300: 0a 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 ..package requir
0310: 65 20 54 63 6c 20 38 2e 34 20 20 20 20 20 20 20 e Tcl 8.4
0320: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0330: 20 20 20 20 20 20 20 20 3b 20 23 20 52 65 71 75 ; # Requ
0340: 69 72 65 64 20 72 75 6e 74 69 6d 65 2e 0a 70 61 ired runtime..pa
0350: 63 6b 61 67 65 20 72 65 71 75 69 72 65 20 73 6e ckage require sn
0360: 69 74 20 20 20 20 20 20 20 20 20 20 20 20 20 20 it
0370: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0380: 20 20 20 20 3b 20 23 20 4f 4f 20 73 79 73 74 65 ; # OO syste
0390: 6d 2e 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 m..package requi
03a0: 72 65 20 76 63 3a 3a 74 6f 6f 6c 73 3a 3a 6d 69 re vc::tools::mi
03b0: 73 63 20 20 20 20 20 20 20 20 20 20 20 20 20 20 sc
03c0: 20 20 20 20 20 20 20 20 20 3b 20 23 20 54 65 78 ; # Tex
03d0: 74 20 66 6f 72 6d 61 74 74 69 6e 67 2e 0a 70 61 t formatting..pa
03e0: 63 6b 61 67 65 20 72 65 71 75 69 72 65 20 76 63 ckage require vc
03f0: 3a 3a 74 6f 6f 6c 73 3a 3a 6c 6f 67 20 20 20 20 ::tools::log
0400: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0410: 20 20 20 20 3b 20 23 20 55 73 65 72 20 66 65 65 ; # User fee
0420: 64 62 61 63 6b 2e 0a 70 61 63 6b 61 67 65 20 72 dback..package r
0430: 65 71 75 69 72 65 20 76 63 3a 3a 66 6f 73 73 69 equire vc::fossi
0440: 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a l::import::cvs::
0450: 72 65 70 6f 73 69 74 6f 72 79 20 20 20 3b 20 23 repository ; #
0460: 20 52 65 70 6f 73 69 74 6f 72 79 20 6d 61 6e 61 Repository mana
0470: 67 65 6d 65 6e 74 2e 0a 70 61 63 6b 61 67 65 20 gement..package
0480: 72 65 71 75 69 72 65 20 76 63 3a 3a 66 6f 73 73 require vc::foss
0490: 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a il::import::cvs:
04a0: 3a 73 74 61 74 65 20 20 20 20 20 20 20 20 3b 20 :state ;
04b0: 23 20 53 74 61 74 65 20 73 74 6f 72 61 67 65 2e # State storage.
04c0: 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 .package require
04d0: 20 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 vc::fossil::imp
04e0: 6f 72 74 3a 3a 63 76 73 3a 3a 69 6e 74 65 67 72 ort::cvs::integr
04f0: 69 74 79 20 20 20 20 3b 20 23 20 53 74 61 74 65 ity ; # State
0500: 20 69 6e 74 65 67 72 69 74 79 20 63 68 65 63 6b integrity check
0510: 73 2e 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 s..package requi
0520: 72 65 20 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 re vc::fossil::i
0530: 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 70 72 6f 6a mport::cvs::proj
0540: 65 63 74 3a 3a 73 79 6d 20 3b 20 23 20 50 72 6f ect::sym ; # Pro
0550: 6a 65 63 74 20 6c 65 76 65 6c 20 73 79 6d 62 6f ject level symbo
0560: 6c 73 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 ls.package requi
0570: 72 65 20 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 re vc::fossil::i
0580: 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 70 72 6f 6a mport::cvs::proj
0590: 65 63 74 3a 3a 72 65 76 20 3b 20 23 20 50 72 6f ect::rev ; # Pro
05a0: 6a 65 63 74 20 6c 65 76 65 6c 20 63 68 61 6e 67 ject level chang
05b0: 65 73 65 74 73 0a 0a 23 20 23 20 23 23 20 23 23 esets..# # ## ##
05c0: 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23 23 # ##### ########
05d0: 20 23 23 23 23 23 23 23 23 23 23 23 23 23 20 23 ############# #
05e0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
05f0: 23 23 23 23 0a 23 23 20 52 65 67 69 73 74 65 72 ####.## Register
0600: 20 74 68 65 20 70 61 73 73 20 77 69 74 68 20 74 the pass with t
0610: 68 65 20 6d 61 6e 61 67 65 6d 65 6e 74 0a 0a 76 he management..v
0620: 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 c::fossil::impor
0630: 74 3a 3a 63 76 73 3a 3a 70 61 73 73 20 64 65 66 t::cvs::pass def
0640: 69 6e 65 20 5c 0a 20 20 20 20 49 6e 69 74 43 73 ine \. InitCs
0650: 65 74 73 20 5c 0a 20 20 20 20 7b 49 6e 69 74 69 ets \. {Initi
0660: 61 6c 69 7a 65 20 43 68 61 6e 67 65 53 65 74 73 alize ChangeSets
0670: 7d 20 5c 0a 20 20 20 20 3a 3a 76 63 3a 3a 66 6f } \. ::vc::fo
0680: 73 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 ssil::import::cv
0690: 73 3a 3a 70 61 73 73 3a 3a 69 6e 69 74 63 73 65 s::pass::initcse
06a0: 74 73 0a 0a 23 20 23 20 23 23 20 23 23 23 20 23 ts..# # ## ### #
06b0: 23 23 23 23 20 23 23 23 23 23 23 23 23 20 23 23 #### ######## ##
06c0: 23 23 23 23 23 23 23 23 23 23 23 20 23 23 23 23 ########### ####
06d0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
06e0: 23 0a 23 23 0a 0a 73 6e 69 74 3a 3a 74 79 70 65 #.##..snit::type
06f0: 20 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 ::vc::fossil::i
0700: 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 70 61 73 73 mport::cvs::pass
0710: 3a 3a 69 6e 69 74 63 73 65 74 73 20 7b 0a 20 20 ::initcsets {.
0720: 20 20 23 20 23 20 23 23 20 23 23 23 20 23 23 23 # # ## ### ###
0730: 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23 ## ######## ####
0740: 23 23 23 23 23 23 23 23 23 0a 20 20 20 20 23 23 #########. ##
0750: 20 50 75 62 6c 69 63 20 41 50 49 0a 0a 20 20 20 Public API..
0760: 20 74 79 70 65 6d 65 74 68 6f 64 20 73 65 74 75 typemethod setu
0770: 70 20 7b 7d 20 7b 0a 09 23 20 44 65 66 69 6e 65 p {} {..# Define
0780: 20 74 68 65 20 6e 61 6d 65 73 20 61 6e 64 20 73 the names and s
0790: 74 72 75 63 74 75 72 65 20 6f 66 20 74 68 65 20 tructure of the
07a0: 70 65 72 73 69 73 74 65 6e 74 20 73 74 61 74 65 persistent state
07b0: 20 6f 66 0a 09 23 20 74 68 69 73 20 70 61 73 73 of..# this pass
07c0: 2e 0a 0a 09 73 74 61 74 65 20 72 65 61 64 69 6e ....state readin
07d0: 67 20 6d 65 74 61 0a 09 73 74 61 74 65 20 72 65 g meta..state re
07e0: 61 64 69 6e 67 20 72 65 76 69 73 69 6f 6e 0a 09 ading revision..
07f0: 73 74 61 74 65 20 72 65 61 64 69 6e 67 20 72 65 state reading re
0800: 76 69 73 69 6f 6e 62 72 61 6e 63 68 63 68 69 6c visionbranchchil
0810: 64 72 65 6e 0a 09 73 74 61 74 65 20 72 65 61 64 dren..state read
0820: 69 6e 67 20 62 72 61 6e 63 68 0a 09 73 74 61 74 ing branch..stat
0830: 65 20 72 65 61 64 69 6e 67 20 74 61 67 0a 09 73 e reading tag..s
0840: 74 61 74 65 20 72 65 61 64 69 6e 67 20 73 79 6d tate reading sym
0850: 62 6f 6c 0a 0a 09 23 20 44 61 74 61 20 70 65 72 bol...# Data per
0860: 20 63 68 61 6e 67 65 73 65 74 2c 20 6e 61 6d 65 changeset, name
0870: 6c 79 20 74 68 65 20 70 72 6f 6a 65 63 74 20 69 ly the project i
0880: 74 20 62 65 6c 6f 6e 67 73 20 74 6f 2c 20 68 6f t belongs to, ho
0890: 77 20 69 74 0a 09 23 20 77 61 73 20 69 6e 64 75 w it..# was indu
08a0: 63 65 64 20 28 72 65 76 69 73 69 6f 6e 20 6f 72 ced (revision or
08b0: 20 73 79 6d 62 6f 6c 29 2c 20 70 6c 75 73 20 72 symbol), plus r
08c0: 65 66 65 72 65 6e 63 65 20 74 6f 20 74 68 65 0a eference to the.
08d0: 09 23 20 70 72 69 6d 61 72 79 20 65 6e 74 72 79 .# primary entry
08e0: 20 63 61 75 73 69 6e 67 20 69 74 20 28 6d 65 74 causing it (met
08f0: 61 20 65 6e 74 72 79 20 6f 72 20 73 79 6d 62 6f a entry or symbo
0900: 6c 29 2e 20 41 6e 20 61 64 6a 75 6e 63 74 0a 09 l). An adjunct..
0910: 23 20 74 61 62 6c 65 20 74 72 61 6e 73 6c 61 74 # table translat
0920: 65 73 20 74 68 65 20 74 79 70 65 20 69 64 27 73 es the type id's
0930: 20 69 6e 74 6f 20 68 75 6d 61 6e 20 72 65 61 64 into human read
0940: 61 62 6c 65 20 6c 61 62 65 6c 73 2e 0a 0a 09 73 able labels....s
0950: 74 61 74 65 20 77 72 69 74 69 6e 67 20 63 68 61 tate writing cha
0960: 6e 67 65 73 65 74 20 7b 0a 09 20 20 20 20 63 69 ngeset {.. ci
0970: 64 20 20 20 49 4e 54 45 47 45 52 20 20 4e 4f 54 d INTEGER NOT
0980: 20 4e 55 4c 4c 20 20 50 52 49 4d 41 52 59 20 4b NULL PRIMARY K
0990: 45 59 20 20 41 55 54 4f 49 4e 43 52 45 4d 45 4e EY AUTOINCREMEN
09a0: 54 2c 0a 09 20 20 20 20 70 69 64 20 20 20 49 4e T,.. pid IN
09b0: 54 45 47 45 52 20 20 4e 4f 54 20 4e 55 4c 4c 20 TEGER NOT NULL
09c0: 20 52 45 46 45 52 45 4e 43 45 53 20 70 72 6f 6a REFERENCES proj
09d0: 65 63 74 2c 0a 09 20 20 20 20 74 79 70 65 20 20 ect,.. type
09e0: 49 4e 54 45 47 45 52 20 20 4e 4f 54 20 4e 55 4c INTEGER NOT NUL
09f0: 4c 20 20 52 45 46 45 52 45 4e 43 45 53 20 63 73 L REFERENCES cs
0a00: 74 79 70 65 2c 0a 09 20 20 20 20 73 72 63 20 20 type,.. src
0a10: 20 49 4e 54 45 47 45 52 20 20 4e 4f 54 20 4e 55 INTEGER NOT NU
0a20: 4c 4c 20 2d 2d 20 52 45 46 45 52 45 4e 43 45 53 LL -- REFERENCES
0a30: 20 6d 65 74 61 7c 73 79 6d 62 6f 6c 20 28 74 79 meta|symbol (ty
0a40: 70 65 20 64 65 70 65 6e 64 65 6e 74 29 0a 09 7d pe dependent)..}
0a50: 0a 09 73 74 61 74 65 20 77 72 69 74 69 6e 67 20 ..state writing
0a60: 63 73 74 79 70 65 20 7b 0a 09 20 20 20 20 74 69 cstype {.. ti
0a70: 64 20 20 20 49 4e 54 45 47 45 52 20 20 4e 4f 54 d INTEGER NOT
0a80: 20 4e 55 4c 4c 20 20 50 52 49 4d 41 52 59 20 4b NULL PRIMARY K
0a90: 45 59 20 20 41 55 54 4f 49 4e 43 52 45 4d 45 4e EY AUTOINCREMEN
0aa0: 54 2c 0a 09 20 20 20 20 6e 61 6d 65 20 20 54 45 T,.. name TE
0ab0: 58 54 20 20 20 20 20 4e 4f 54 20 4e 55 4c 4c 2c XT NOT NULL,
0ac0: 0a 09 20 20 20 20 55 4e 49 51 55 45 20 28 6e 61 .. UNIQUE (na
0ad0: 6d 65 29 0a 09 7d 0a 09 73 74 61 74 65 20 72 75 me)..}..state ru
0ae0: 6e 20 7b 0a 09 20 20 20 20 49 4e 53 45 52 54 20 n {.. INSERT
0af0: 49 4e 54 4f 20 63 73 74 79 70 65 20 56 41 4c 55 INTO cstype VALU
0b00: 45 53 20 28 30 2c 27 72 65 76 27 29 3b 0a 09 20 ES (0,'rev');..
0b10: 20 20 20 49 4e 53 45 52 54 20 49 4e 54 4f 20 63 INSERT INTO c
0b20: 73 74 79 70 65 20 56 41 4c 55 45 53 20 28 31 2c stype VALUES (1,
0b30: 27 73 79 6d 27 29 3b 0a 09 7d 0a 0a 09 23 20 4d 'sym');..}...# M
0b40: 61 70 20 66 72 6f 6d 20 63 68 61 6e 67 65 73 65 ap from changese
0b50: 74 73 20 74 6f 20 74 68 65 20 28 66 69 6c 65 20 ts to the (file
0b60: 6c 65 76 65 6c 29 20 72 65 76 69 73 69 6f 6e 73 level) revisions
0b70: 20 74 68 65 79 0a 09 23 20 63 6f 6e 74 61 69 6e they..# contain
0b80: 2e 20 54 68 65 20 70 6f 73 27 69 74 69 6f 6e 20 . The pos'ition
0b90: 70 72 6f 76 69 64 65 73 20 61 6e 20 6f 72 64 65 provides an orde
0ba0: 72 20 6f 66 20 74 68 65 20 72 65 76 69 73 69 6f r of the revisio
0bb0: 6e 73 0a 09 23 20 77 69 74 68 69 6e 20 61 20 63 ns..# within a c
0bc0: 68 61 6e 67 65 73 65 74 2e 20 54 68 65 79 20 61 hangeset. They a
0bd0: 72 65 20 75 6e 69 71 75 65 20 77 69 74 68 69 6e re unique within
0be0: 20 74 68 65 20 63 68 61 6e 67 65 73 65 74 2e 0a the changeset..
0bf0: 09 23 20 54 68 65 20 72 65 76 69 73 69 6f 6e 73 .# The revisions
0c00: 20 61 72 65 20 69 6e 20 70 72 69 6e 63 69 70 6c are in principl
0c10: 65 20 75 6e 69 71 75 65 2c 20 69 66 20 77 65 20 e unique, if we
0c20: 77 65 72 65 20 6c 6f 6f 6b 69 6e 67 0a 09 23 20 were looking..#
0c30: 6f 6e 6c 79 20 61 74 20 72 65 76 69 73 69 6f 6e only at revision
0c40: 20 63 68 61 6e 67 65 73 65 74 73 2e 20 48 6f 77 changesets. How
0c50: 65 76 65 72 20 61 20 72 65 76 69 73 69 6f 6e 20 ever a revision
0c60: 63 61 6e 20 61 70 70 65 61 72 0a 09 23 20 69 6e can appear..# in
0c70: 20 62 6f 74 68 20 72 65 76 69 73 69 6f 6e 20 61 both revision a
0c80: 6e 64 20 73 79 6d 62 6f 6c 20 63 68 61 6e 67 65 nd symbol change
0c90: 73 65 74 73 2c 20 61 6e 64 20 69 6e 20 6d 75 6c sets, and in mul
0ca0: 74 69 70 6c 65 0a 09 23 20 73 79 6d 62 6f 6c 20 tiple..# symbol
0cb0: 63 68 61 6e 67 65 73 65 74 73 20 61 73 20 77 65 changesets as we
0cc0: 6c 6c 2e 20 53 6f 20 77 65 20 63 61 6e 20 6f 6e ll. So we can on
0cd0: 6c 79 20 73 61 79 20 74 68 61 74 20 69 74 20 69 ly say that it i
0ce0: 73 0a 09 23 20 75 6e 69 71 75 65 20 77 69 74 68 s..# unique with
0cf0: 69 6e 20 74 68 65 20 63 68 61 6e 67 65 73 65 74 in the changeset
0d00: 2e 0a 09 23 0a 09 23 20 54 4f 44 4f 3a 20 43 68 ...#..# TODO: Ch
0d10: 65 63 6b 20 69 66 20 69 6e 74 65 67 72 69 74 79 eck if integrity
0d20: 20 63 68 65 63 6b 73 20 61 72 65 20 70 6f 73 73 checks are poss
0d30: 69 62 6c 65 2e 0a 0a 09 73 74 61 74 65 20 77 72 ible....state wr
0d40: 69 74 69 6e 67 20 63 73 72 65 76 69 73 69 6f 6e iting csrevision
0d50: 20 7b 0a 09 20 20 20 20 63 69 64 20 20 49 4e 54 {.. cid INT
0d60: 45 47 45 52 20 20 4e 4f 54 20 4e 55 4c 4c 20 20 EGER NOT NULL
0d70: 52 45 46 45 52 45 4e 43 45 53 20 63 68 61 6e 67 REFERENCES chang
0d80: 65 73 65 74 2c 0a 09 20 20 20 20 70 6f 73 20 20 eset,.. pos
0d90: 49 4e 54 45 47 45 52 20 20 4e 4f 54 20 4e 55 4c INTEGER NOT NUL
0da0: 4c 2c 0a 09 20 20 20 20 72 69 64 20 20 49 4e 54 L,.. rid INT
0db0: 45 47 45 52 20 20 4e 4f 54 20 4e 55 4c 4c 20 20 EGER NOT NULL
0dc0: 52 45 46 45 52 45 4e 43 45 53 20 72 65 76 69 73 REFERENCES revis
0dd0: 69 6f 6e 2c 0a 09 20 20 20 20 55 4e 49 51 55 45 ion,.. UNIQUE
0de0: 20 28 63 69 64 2c 20 70 6f 73 29 2c 0a 09 20 20 (cid, pos),..
0df0: 20 20 55 4e 49 51 55 45 20 28 63 69 64 2c 20 72 UNIQUE (cid, r
0e00: 69 64 29 0a 09 7d 0a 0a 09 70 72 6f 6a 65 63 74 id)..}...project
0e10: 3a 3a 72 65 76 20 67 65 74 63 73 74 79 70 65 73 ::rev getcstypes
0e20: 0a 09 72 65 74 75 72 6e 0a 20 20 20 20 7d 0a 0a ..return. }..
0e30: 20 20 20 20 74 79 70 65 6d 65 74 68 6f 64 20 6c typemethod l
0e40: 6f 61 64 20 7b 7d 20 7b 0a 09 23 20 50 61 73 73 oad {} {..# Pass
0e50: 20 6d 61 6e 61 67 65 72 20 69 6e 74 65 72 66 61 manager interfa
0e60: 63 65 2e 20 45 78 65 63 75 74 65 64 20 74 6f 20 ce. Executed to
0e70: 6c 6f 61 64 20 64 61 74 61 20 63 6f 6d 70 75 74 load data comput
0e80: 65 64 20 62 79 0a 09 23 20 74 68 69 73 20 70 61 ed by..# this pa
0e90: 73 73 20 69 6e 74 6f 20 6d 65 6d 6f 72 79 20 77 ss into memory w
0ea0: 68 65 6e 20 74 68 69 73 20 70 61 73 73 20 69 73 hen this pass is
0eb0: 20 73 6b 69 70 70 65 64 20 69 6e 73 74 65 61 64 skipped instead
0ec0: 20 6f 66 0a 09 23 20 65 78 65 63 75 74 65 64 2e of..# executed.
0ed0: 0a 0a 09 73 74 61 74 65 20 72 65 61 64 69 6e 67 ...state reading
0ee0: 20 63 68 61 6e 67 65 73 65 74 0a 09 73 74 61 74 changeset..stat
0ef0: 65 20 72 65 61 64 69 6e 67 20 63 73 72 65 76 69 e reading csrevi
0f00: 73 69 6f 6e 0a 09 73 74 61 74 65 20 72 65 61 64 sion..state read
0f10: 69 6e 67 20 63 73 74 79 70 65 0a 0a 09 66 6f 72 ing cstype...for
0f20: 65 61 63 68 20 7b 69 64 20 70 69 64 20 63 73 74 each {id pid cst
0f30: 79 70 65 20 73 72 63 69 64 7d 20 5b 73 74 61 74 ype srcid} [stat
0f40: 65 20 72 75 6e 20 7b 0a 09 20 20 20 20 53 45 4c e run {.. SEL
0f50: 45 43 54 20 43 2e 63 69 64 2c 20 43 2e 70 69 64 ECT C.cid, C.pid
0f60: 2c 20 43 53 2e 6e 61 6d 65 2c 20 43 2e 73 72 63 , CS.name, C.src
0f70: 0a 09 20 20 20 20 46 52 4f 4d 20 20 20 63 68 61 .. FROM cha
0f80: 6e 67 65 73 65 74 20 43 2c 20 63 73 74 79 70 65 ngeset C, cstype
0f90: 20 43 53 0a 09 20 20 20 20 57 48 45 52 45 20 20 CS.. WHERE
0fa0: 43 2e 74 79 70 65 20 3d 20 43 53 2e 74 69 64 0a C.type = CS.tid.
0fb0: 09 20 20 20 20 4f 52 44 45 52 20 42 59 20 43 2e . ORDER BY C.
0fc0: 63 69 64 0a 09 7d 5d 20 7b 0a 09 20 20 20 20 73 cid..}] {.. s
0fd0: 65 74 20 72 20 5b 70 72 6f 6a 65 63 74 3a 3a 72 et r [project::r
0fe0: 65 76 20 25 41 55 54 4f 25 20 5b 72 65 70 6f 73 ev %AUTO% [repos
0ff0: 69 74 6f 72 79 20 70 72 6f 6a 65 63 74 6f 66 20 itory projectof
1000: 24 70 69 64 5d 20 24 63 73 74 79 70 65 20 24 73 $pid] $cstype $s
1010: 72 63 69 64 20 5b 73 74 61 74 65 20 72 75 6e 20 rcid [state run
1020: 7b 0a 09 09 53 45 4c 45 43 54 20 43 2e 72 69 64 {...SELECT C.rid
1030: 0a 09 09 46 52 4f 4d 20 20 20 63 73 72 65 76 69 ...FROM csrevi
1040: 73 69 6f 6e 20 43 0a 09 09 57 48 45 52 45 20 20 sion C...WHERE
1050: 43 2e 63 69 64 20 3d 20 24 69 64 0a 09 09 4f 52 C.cid = $id...OR
1060: 44 45 52 20 20 42 59 20 43 2e 70 6f 73 0a 09 20 DER BY C.pos..
1070: 20 20 20 7d 5d 20 24 69 64 5d 0a 09 7d 0a 0a 09 }] $id]..}...
1080: 70 72 6f 6a 65 63 74 3a 3a 72 65 76 20 67 65 74 project::rev get
1090: 63 73 74 79 70 65 73 0a 09 70 72 6f 6a 65 63 74 cstypes..project
10a0: 3a 3a 72 65 76 20 6c 6f 61 64 63 6f 75 6e 74 65 ::rev loadcounte
10b0: 72 0a 09 72 65 74 75 72 6e 0a 20 20 20 20 7d 0a r..return. }.
10c0: 0a 20 20 20 20 74 79 70 65 6d 65 74 68 6f 64 20 . typemethod
10d0: 72 75 6e 20 7b 7d 20 7b 0a 09 23 20 50 61 73 73 run {} {..# Pass
10e0: 20 6d 61 6e 61 67 65 72 20 69 6e 74 65 72 66 61 manager interfa
10f0: 63 65 2e 20 45 78 65 63 75 74 65 64 20 74 6f 20 ce. Executed to
1100: 70 65 72 66 6f 72 6d 20 74 68 65 0a 09 23 20 66 perform the..# f
1110: 75 6e 63 74 69 6f 6e 61 6c 69 74 79 20 6f 66 20 unctionality of
1120: 74 68 65 20 70 61 73 73 2e 0a 0a 09 73 74 61 74 the pass....stat
1130: 65 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 7b 0a e transaction {.
1140: 09 20 20 20 20 43 72 65 61 74 65 52 65 76 69 73 . CreateRevis
1150: 69 6f 6e 43 68 61 6e 67 65 73 65 74 73 20 20 3b ionChangesets ;
1160: 20 23 20 47 72 6f 75 70 20 66 69 6c 65 20 72 65 # Group file re
1170: 76 69 73 69 6f 6e 73 20 69 6e 74 6f 20 63 73 65 visions into cse
1180: 74 73 2e 0a 09 20 20 20 20 42 72 65 61 6b 49 6e ts... BreakIn
1190: 74 65 72 6e 61 6c 44 65 70 65 6e 64 65 6e 63 69 ternalDependenci
11a0: 65 73 20 3b 20 23 20 53 70 6c 69 74 20 74 68 65 es ; # Split the
11b0: 20 63 73 65 74 73 20 62 61 73 65 64 20 6f 6e 20 csets based on
11c0: 69 6e 74 65 72 6e 61 6c 20 63 6f 6e 66 6c 69 63 internal conflic
11d0: 74 73 2e 0a 09 20 20 20 20 43 72 65 61 74 65 53 ts... CreateS
11e0: 79 6d 62 6f 6c 43 68 61 6e 67 65 73 65 74 73 20 ymbolChangesets
11f0: 20 20 20 3b 20 23 20 43 72 65 61 74 65 20 63 73 ; # Create cs
1200: 65 74 73 20 66 6f 72 20 74 61 67 73 20 61 6e 64 ets for tags and
1210: 20 62 72 61 6e 63 68 65 73 2e 0a 09 20 20 20 20 branches...
1220: 50 65 72 73 69 73 74 54 68 65 43 68 61 6e 67 65 PersistTheChange
1230: 73 65 74 73 0a 09 7d 0a 0a 09 72 65 70 6f 73 69 sets..}...reposi
1240: 74 6f 72 79 20 70 72 69 6e 74 63 73 65 74 73 74 tory printcsetst
1250: 61 74 69 73 74 69 63 73 0a 09 69 6e 74 65 67 72 atistics..integr
1260: 69 74 79 20 63 68 61 6e 67 65 73 65 74 73 0a 09 ity changesets..
1270: 72 65 74 75 72 6e 0a 20 20 20 20 7d 0a 0a 20 20 return. }..
1280: 20 20 74 79 70 65 6d 65 74 68 6f 64 20 64 69 73 typemethod dis
1290: 63 61 72 64 20 7b 7d 20 7b 0a 09 23 20 50 61 73 card {} {..# Pas
12a0: 73 20 6d 61 6e 61 67 65 72 20 69 6e 74 65 72 66 s manager interf
12b0: 61 63 65 2e 20 45 78 65 63 75 74 65 64 20 66 6f ace. Executed fo
12c0: 72 20 61 6c 6c 20 70 61 73 73 65 73 20 61 66 74 r all passes aft
12d0: 65 72 20 74 68 65 0a 09 23 20 72 75 6e 20 70 61 er the..# run pa
12e0: 73 73 65 73 2c 20 74 6f 20 72 65 6d 6f 76 65 20 sses, to remove
12f0: 61 6c 6c 20 64 61 74 61 20 6f 66 20 74 68 69 73 all data of this
1300: 20 70 61 73 73 20 66 72 6f 6d 20 74 68 65 20 73 pass from the s
1310: 74 61 74 65 2c 0a 09 23 20 61 73 20 62 65 69 6e tate,..# as bein
1320: 67 20 6f 75 74 20 6f 66 20 64 61 74 65 2e 0a 0a g out of date...
1330: 09 73 74 61 74 65 20 64 69 73 63 61 72 64 20 63 .state discard c
1340: 68 61 6e 67 65 73 65 74 0a 09 73 74 61 74 65 20 hangeset..state
1350: 64 69 73 63 61 72 64 20 63 73 74 79 70 65 0a 09 discard cstype..
1360: 73 74 61 74 65 20 64 69 73 63 61 72 64 20 63 73 state discard cs
1370: 72 65 76 69 73 69 6f 6e 0a 09 72 65 74 75 72 6e revision..return
1380: 0a 20 20 20 20 7d 0a 0a 20 20 20 20 23 20 23 20 . }.. # #
1390: 23 23 20 23 23 23 20 23 23 23 23 23 20 23 23 23 ## ### ##### ###
13a0: 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23 23 ##### ##########
13b0: 23 23 23 0a 20 20 20 20 23 23 20 49 6e 74 65 72 ###. ## Inter
13c0: 6e 61 6c 20 6d 65 74 68 6f 64 73 0a 0a 20 20 20 nal methods..
13d0: 20 70 72 6f 63 20 43 72 65 61 74 65 52 65 76 69 proc CreateRevi
13e0: 73 69 6f 6e 43 68 61 6e 67 65 73 65 74 73 20 7b sionChangesets {
13f0: 7d 20 7b 0a 09 6c 6f 67 20 77 72 69 74 65 20 33 } {..log write 3
1400: 20 69 6e 69 74 63 73 65 74 73 20 7b 43 72 65 61 initcsets {Crea
1410: 74 65 20 63 68 61 6e 67 65 73 65 74 73 20 62 61 te changesets ba
1420: 73 65 64 20 6f 6e 20 72 65 76 69 73 69 6f 6e 73 sed on revisions
1430: 7d 0a 0a 09 23 20 54 6f 20 67 65 74 20 74 68 65 }...# To get the
1440: 20 69 6e 69 74 69 61 6c 20 6f 66 20 63 68 61 6e initial of chan
1450: 67 65 73 65 74 73 20 77 65 20 66 69 72 73 74 20 gesets we first
1460: 67 72 6f 75 70 20 61 6c 6c 20 66 69 6c 65 0a 09 group all file..
1470: 23 20 6c 65 76 65 6c 20 72 65 76 69 73 69 6f 6e # level revision
1480: 73 20 75 73 69 6e 67 20 74 68 65 20 73 61 6d 65 s using the same
1490: 20 6d 65 74 61 20 64 61 74 61 20 65 6e 74 72 79 meta data entry
14a0: 20 74 6f 67 65 74 68 65 72 2e 20 41 73 0a 09 23 together. As..#
14b0: 20 74 68 65 20 6d 65 74 61 20 64 61 74 61 20 65 the meta data e
14c0: 6e 63 6f 64 65 73 20 6e 6f 74 20 6f 6e 6c 79 20 ncodes not only
14d0: 61 75 74 68 6f 72 20 61 6e 64 20 6c 6f 67 20 6d author and log m
14e0: 65 73 73 61 67 65 2c 20 62 75 74 0a 09 23 20 61 essage, but..# a
14f0: 6c 73 6f 20 6c 69 6e 65 20 6f 66 20 64 65 76 65 lso line of deve
1500: 6c 6f 70 6d 65 6e 74 20 61 6e 64 20 70 72 6f 6a lopment and proj
1510: 65 63 74 20 77 65 20 63 61 6e 20 62 65 20 73 75 ect we can be su
1520: 72 65 20 74 68 61 74 0a 09 23 20 72 65 76 69 73 re that..# revis
1530: 69 6f 6e 73 20 69 6e 20 64 69 66 66 65 72 65 6e ions in differen
1540: 74 20 70 72 6f 6a 65 63 74 20 61 6e 64 20 6c 69 t project and li
1550: 6e 65 73 20 6f 66 20 64 65 76 65 6c 6f 70 6d 65 nes of developme
1560: 6e 74 20 61 72 65 0a 09 23 20 6e 6f 74 20 67 72 nt are..# not gr
1570: 6f 75 70 65 64 20 74 6f 67 65 74 68 65 72 2e 20 ouped together.
1580: 49 6e 20 63 6f 6e 74 72 61 73 74 20 74 6f 20 63 In contrast to c
1590: 76 73 32 73 76 6e 20 77 65 20 64 6f 20 5f 5f 6e vs2svn we do __n
15a0: 6f 74 5f 5f 0a 09 23 20 75 73 65 20 64 69 73 74 ot__..# use dist
15b0: 61 6e 63 65 20 69 6e 20 74 69 6d 65 20 62 65 74 ance in time bet
15c0: 77 65 65 6e 20 72 65 76 69 73 69 6f 6e 73 20 74 ween revisions t
15d0: 6f 20 62 72 65 61 6b 20 74 68 65 6d 0a 09 23 20 o break them..#
15e0: 61 70 61 72 74 2e 20 57 65 20 68 61 76 65 20 73 apart. We have s
15f0: 65 65 6e 20 43 56 53 20 72 65 70 6f 73 69 74 6f een CVS reposito
1600: 72 69 65 73 20 28 66 72 6f 6d 20 53 46 29 20 77 ries (from SF) w
1610: 68 65 72 65 20 61 0a 09 23 20 73 69 6e 67 6c 65 here a..# single
1620: 20 63 6f 6d 6d 69 74 20 63 6f 6e 74 61 69 6e 65 commit containe
1630: 64 20 72 65 76 69 73 69 6f 6e 73 20 73 65 76 65 d revisions seve
1640: 72 61 6c 20 68 6f 75 72 73 20 61 70 61 72 74 2c ral hours apart,
1650: 0a 09 23 20 6c 69 6b 65 6c 79 20 64 75 65 20 74 ..# likely due t
1660: 6f 20 74 72 6f 75 62 6c 65 20 6f 6e 20 74 68 65 o trouble on the
1670: 20 73 65 72 76 65 72 20 68 6f 73 74 69 6e 67 20 server hosting
1680: 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79 2e 0a the repository..
1690: 0a 09 23 20 57 65 20 6f 72 64 65 72 20 74 68 65 ..# We order the
16a0: 20 72 65 76 69 73 69 6f 6e 73 20 68 65 72 65 20 revisions here
16b0: 62 79 20 74 69 6d 65 2c 20 74 68 69 73 20 77 69 by time, this wi
16c0: 6c 6c 20 68 65 6c 70 20 74 68 65 0a 09 23 20 6c ll help the..# l
16d0: 61 74 65 72 20 70 61 73 73 65 73 20 28 61 76 6f ater passes (avo
16e0: 69 64 73 20 6a 6f 69 6e 73 20 6c 61 74 65 72 20 ids joins later
16f0: 74 6f 20 67 65 74 20 61 74 20 74 68 65 20 6f 72 to get at the or
1700: 64 65 72 69 6e 67 0a 09 23 20 69 6e 66 6f 29 2e dering..# info).
1710: 0a 0a 09 73 65 74 20 6e 20 30 0a 0a 09 73 65 74 ...set n 0...set
1720: 20 6c 61 73 74 6d 65 74 61 20 20 20 20 7b 7d 0a lastmeta {}.
1730: 09 73 65 74 20 6c 61 73 74 70 72 6f 6a 65 63 74 .set lastproject
1740: 20 7b 7d 0a 09 73 65 74 20 72 65 76 69 73 69 6f {}..set revisio
1750: 6e 73 20 20 20 7b 7d 0a 0a 09 23 20 4e 6f 74 65 ns {}...# Note
1760: 3a 20 57 65 20 63 6f 75 6c 64 20 68 61 76 65 20 : We could have
1770: 77 72 69 74 74 65 6e 20 74 68 69 73 20 6c 6f 6f written this loo
1780: 70 20 74 6f 20 63 72 65 61 74 65 20 74 68 65 20 p to create the
1790: 63 73 65 74 73 0a 09 23 20 20 20 20 20 20 20 65 csets..# e
17a0: 61 72 6c 79 2c 20 65 78 74 65 6e 64 69 6e 67 20 arly, extending
17b0: 74 68 65 6d 20 77 69 74 68 20 61 6c 6c 20 74 68 them with all th
17c0: 65 69 72 20 72 65 76 69 73 69 6f 6e 73 2e 20 54 eir revisions. T
17d0: 68 69 73 0a 09 23 20 20 20 20 20 20 20 68 6f 77 his..# how
17e0: 65 76 65 72 20 77 6f 75 6c 64 20 6d 65 61 6e 20 ever would mean
17f0: 6c 6f 74 73 20 6f 66 20 28 73 6c 6f 77 29 20 6d lots of (slow) m
1800: 65 74 68 6f 64 20 69 6e 76 6f 6b 61 74 69 6f 6e ethod invokation
1810: 73 0a 09 23 20 20 20 20 20 20 20 6f 6e 20 74 68 s..# on th
1820: 65 20 63 73 65 74 73 2e 20 44 6f 69 6e 67 20 69 e csets. Doing i
1830: 74 20 6c 69 6b 65 20 74 68 69 73 2c 20 6c 61 74 t like this, lat
1840: 65 20 63 72 65 61 74 69 6f 6e 2c 20 6d 65 61 6e e creation, mean
1850: 73 0a 09 23 20 20 20 20 20 20 20 6c 65 73 73 20 s..# less
1860: 73 75 63 68 20 63 61 6c 6c 73 2e 20 4e 6f 6e 65 such calls. None
1870: 2c 20 62 75 74 20 74 68 65 20 63 72 65 61 74 69 , but the creati
1880: 6f 6e 20 69 74 73 65 6c 66 2e 0a 0a 09 66 6f 72 on itself....for
1890: 65 61 63 68 20 7b 6d 69 64 20 72 69 64 20 70 69 each {mid rid pi
18a0: 64 7d 20 5b 73 74 61 74 65 20 72 75 6e 20 7b 0a d} [state run {.
18b0: 09 20 20 20 20 53 45 4c 45 43 54 20 4d 2e 6d 69 . SELECT M.mi
18c0: 64 2c 20 52 2e 72 69 64 2c 20 4d 2e 70 69 64 0a d, R.rid, M.pid.
18d0: 09 20 20 20 20 46 52 4f 4d 20 20 20 72 65 76 69 . FROM revi
18e0: 73 69 6f 6e 20 52 2c 20 6d 65 74 61 20 4d 20 20 sion R, meta M
18f0: 20 2d 2d 20 52 20 3d 3d 3e 20 4d 2c 20 75 73 69 -- R ==> M, usi
1900: 6e 67 20 50 4b 20 69 6e 64 65 78 20 6f 66 20 4d ng PK index of M
1910: 2e 0a 09 20 20 20 20 57 48 45 52 45 20 20 52 2e ... WHERE R.
1920: 6d 69 64 20 3d 20 4d 2e 6d 69 64 0a 09 20 20 20 mid = M.mid..
1930: 20 4f 52 44 45 52 20 20 42 59 20 4d 2e 6d 69 64 ORDER BY M.mid
1940: 2c 20 52 2e 64 61 74 65 0a 09 7d 5d 20 7b 0a 09 , R.date..}] {..
1950: 20 20 20 20 69 66 20 7b 24 6c 61 73 74 6d 65 74 if {$lastmet
1960: 61 20 21 3d 20 24 6d 69 64 7d 20 7b 0a 09 09 69 a != $mid} {...i
1970: 66 20 7b 5b 6c 6c 65 6e 67 74 68 20 24 72 65 76 f {[llength $rev
1980: 69 73 69 6f 6e 73 5d 7d 20 7b 0a 09 09 20 20 20 isions]} {...
1990: 20 69 6e 63 72 20 6e 0a 09 09 20 20 20 20 73 65 incr n... se
19a0: 74 20 20 70 20 5b 72 65 70 6f 73 69 74 6f 72 79 t p [repository
19b0: 20 70 72 6f 6a 65 63 74 6f 66 20 24 6c 61 73 74 projectof $last
19c0: 70 72 6f 6a 65 63 74 5d 0a 09 09 20 20 20 20 70 project]... p
19d0: 72 6f 6a 65 63 74 3a 3a 72 65 76 20 25 41 55 54 roject::rev %AUT
19e0: 4f 25 20 24 70 20 72 65 76 20 24 6c 61 73 74 6d O% $p rev $lastm
19f0: 65 74 61 20 24 72 65 76 69 73 69 6f 6e 73 0a 09 eta $revisions..
1a00: 09 20 20 20 20 73 65 74 20 72 65 76 69 73 69 6f . set revisio
1a10: 6e 73 20 7b 7d 0a 09 09 7d 0a 09 09 73 65 74 20 ns {}...}...set
1a20: 6c 61 73 74 6d 65 74 61 20 20 20 20 24 6d 69 64 lastmeta $mid
1a30: 0a 09 09 73 65 74 20 6c 61 73 74 70 72 6f 6a 65 ...set lastproje
1a40: 63 74 20 24 70 69 64 0a 09 20 20 20 20 7d 0a 09 ct $pid.. }..
1a50: 20 20 20 20 6c 61 70 70 65 6e 64 20 72 65 76 69 lappend revi
1a60: 73 69 6f 6e 73 20 24 72 69 64 0a 09 7d 0a 0a 09 sions $rid..}...
1a70: 69 66 20 7b 5b 6c 6c 65 6e 67 74 68 20 24 72 65 if {[llength $re
1a80: 76 69 73 69 6f 6e 73 5d 7d 20 7b 0a 09 20 20 20 visions]} {..
1a90: 20 69 6e 63 72 20 6e 0a 09 20 20 20 20 73 65 74 incr n.. set
1aa0: 20 20 70 20 5b 72 65 70 6f 73 69 74 6f 72 79 20 p [repository
1ab0: 70 72 6f 6a 65 63 74 6f 66 20 24 6c 61 73 74 70 projectof $lastp
1ac0: 72 6f 6a 65 63 74 5d 0a 09 20 20 20 20 70 72 6f roject].. pro
1ad0: 6a 65 63 74 3a 3a 72 65 76 20 25 41 55 54 4f 25 ject::rev %AUTO%
1ae0: 20 24 70 20 72 65 76 20 24 6c 61 73 74 6d 65 74 $p rev $lastmet
1af0: 61 20 24 72 65 76 69 73 69 6f 6e 73 0a 09 7d 0a a $revisions..}.
1b00: 0a 09 6c 6f 67 20 77 72 69 74 65 20 34 20 69 6e ..log write 4 in
1b10: 69 74 63 73 65 74 73 20 22 43 72 65 61 74 65 64 itcsets "Created
1b20: 20 5b 6e 73 70 20 24 6e 20 7b 72 65 76 69 73 69 [nsp $n {revisi
1b30: 6f 6e 20 63 68 61 6e 67 65 73 65 74 7d 5d 22 0a on changeset}]".
1b40: 09 72 65 74 75 72 6e 0a 20 20 20 20 7d 0a 0a 20 .return. }..
1b50: 20 20 20 70 72 6f 63 20 43 72 65 61 74 65 53 79 proc CreateSy
1b60: 6d 62 6f 6c 43 68 61 6e 67 65 73 65 74 73 20 7b mbolChangesets {
1b70: 7d 20 7b 0a 09 6c 6f 67 20 77 72 69 74 65 20 33 } {..log write 3
1b80: 20 69 6e 69 74 63 73 65 74 73 20 7b 43 72 65 61 initcsets {Crea
1b90: 74 65 20 63 68 61 6e 67 65 73 65 74 73 20 62 61 te changesets ba
1ba0: 73 65 64 20 6f 6e 20 73 79 6d 62 6f 6c 73 7d 0a sed on symbols}.
1bb0: 0a 09 23 20 54 61 67 73 20 61 6e 64 20 62 72 61 ..# Tags and bra
1bc0: 6e 63 68 65 73 20 69 6e 64 75 63 65 20 63 68 61 nches induce cha
1bd0: 6e 67 65 73 65 74 73 20 61 73 20 77 65 6c 6c 2c ngesets as well,
1be0: 20 63 6f 6e 74 61 69 6e 69 6e 67 20 74 68 65 0a containing the.
1bf0: 09 23 20 72 65 76 69 73 69 6f 6e 73 20 74 68 65 .# revisions the
1c00: 79 20 61 72 65 20 61 74 74 61 63 68 65 64 20 74 y are attached t
1c10: 6f 20 28 74 61 67 73 29 2c 20 6f 72 20 73 70 61 o (tags), or spa
1c20: 77 6e 65 64 20 66 72 6f 6d 0a 09 23 20 28 62 72 wned from..# (br
1c30: 61 6e 63 68 65 73 29 2e 0a 0a 09 73 65 74 20 6e anches)....set n
1c40: 20 30 0a 0a 09 23 20 46 69 72 73 74 20 70 72 6f 0...# First pro
1c50: 63 65 73 73 20 74 68 65 20 74 61 67 73 2c 20 74 cess the tags, t
1c60: 68 65 6e 20 74 68 65 20 62 72 61 6e 63 68 65 73 hen the branches
1c70: 2e 20 57 65 20 6b 6e 6f 77 20 74 68 61 74 0a 09 . We know that..
1c80: 23 20 74 68 65 69 72 20 69 64 73 20 64 6f 20 6e # their ids do n
1c90: 6f 74 20 6f 76 65 72 6c 61 70 20 77 69 74 68 20 ot overlap with
1ca0: 65 61 63 68 20 6f 74 68 65 72 2e 0a 0a 09 73 65 each other....se
1cb0: 74 20 6c 61 73 74 73 79 6d 62 6f 6c 20 20 7b 7d t lastsymbol {}
1cc0: 0a 09 73 65 74 20 6c 61 73 74 70 72 6f 6a 65 63 ..set lastprojec
1cd0: 74 20 7b 7d 0a 09 73 65 74 20 72 65 76 69 73 69 t {}..set revisi
1ce0: 6f 6e 73 20 20 20 7b 7d 0a 0a 09 66 6f 72 65 61 ons {}...forea
1cf0: 63 68 20 7b 73 69 64 20 72 69 64 20 70 69 64 7d ch {sid rid pid}
1d00: 20 5b 73 74 61 74 65 20 72 75 6e 20 7b 0a 09 20 [state run {..
1d10: 20 20 20 53 45 4c 45 43 54 20 53 2e 73 69 64 2c SELECT S.sid,
1d20: 20 52 2e 72 69 64 2c 20 53 2e 70 69 64 0a 09 20 R.rid, S.pid..
1d30: 20 20 20 46 52 4f 4d 20 20 74 61 67 20 54 2c 20 FROM tag T,
1d40: 72 65 76 69 73 69 6f 6e 20 52 2c 20 73 79 6d 62 revision R, symb
1d50: 6f 6c 20 53 20 20 20 20 20 2d 2d 20 54 20 3d 3d ol S -- T ==
1d60: 3e 20 52 2f 53 2c 20 75 73 69 6e 67 20 50 4b 20 > R/S, using PK
1d70: 69 6e 64 69 63 65 73 20 6f 66 20 52 2c 20 53 2e indices of R, S.
1d80: 0a 09 20 20 20 20 57 48 45 52 45 20 54 2e 72 65 .. WHERE T.re
1d90: 76 20 3d 20 52 2e 72 69 64 0a 09 20 20 20 20 41 v = R.rid.. A
1da0: 4e 44 20 20 20 54 2e 73 69 64 20 3d 20 53 2e 73 ND T.sid = S.s
1db0: 69 64 0a 09 20 20 20 20 4f 52 44 45 52 20 42 59 id.. ORDER BY
1dc0: 20 53 2e 73 69 64 2c 20 52 2e 64 61 74 65 0a 09 S.sid, R.date..
1dd0: 7d 5d 20 7b 0a 09 20 20 20 20 69 66 20 7b 24 6c }] {.. if {$l
1de0: 61 73 74 73 79 6d 62 6f 6c 20 21 3d 20 24 73 69 astsymbol != $si
1df0: 64 7d 20 7b 0a 09 09 69 66 20 7b 5b 6c 6c 65 6e d} {...if {[llen
1e00: 67 74 68 20 24 72 65 76 69 73 69 6f 6e 73 5d 7d gth $revisions]}
1e10: 20 7b 0a 09 09 20 20 20 20 69 6e 63 72 20 6e 0a {... incr n.
1e20: 09 09 20 20 20 20 73 65 74 20 20 70 20 5b 72 65 .. set p [re
1e30: 70 6f 73 69 74 6f 72 79 20 70 72 6f 6a 65 63 74 pository project
1e40: 6f 66 20 24 6c 61 73 74 70 72 6f 6a 65 63 74 5d of $lastproject]
1e50: 0a 09 09 20 20 20 20 70 72 6f 6a 65 63 74 3a 3a ... project::
1e60: 72 65 76 20 25 41 55 54 4f 25 20 24 70 20 73 79 rev %AUTO% $p sy
1e70: 6d 20 24 6c 61 73 74 73 79 6d 62 6f 6c 20 24 72 m $lastsymbol $r
1e80: 65 76 69 73 69 6f 6e 73 0a 09 09 20 20 20 20 73 evisions... s
1e90: 65 74 20 72 65 76 69 73 69 6f 6e 73 20 7b 7d 0a et revisions {}.
1ea0: 09 09 7d 0a 09 09 73 65 74 20 6c 61 73 74 73 79 ..}...set lastsy
1eb0: 6d 62 6f 6c 20 20 24 73 69 64 0a 09 09 73 65 74 mbol $sid...set
1ec0: 20 6c 61 73 74 70 72 6f 6a 65 63 74 20 24 70 69 lastproject $pi
1ed0: 64 0a 09 20 20 20 20 7d 0a 09 20 20 20 20 6c 61 d.. }.. la
1ee0: 70 70 65 6e 64 20 72 65 76 69 73 69 6f 6e 73 20 ppend revisions
1ef0: 24 72 69 64 0a 09 7d 0a 0a 09 69 66 20 7b 5b 6c $rid..}...if {[l
1f00: 6c 65 6e 67 74 68 20 24 72 65 76 69 73 69 6f 6e length $revision
1f10: 73 5d 7d 20 7b 0a 09 20 20 20 20 69 6e 63 72 20 s]} {.. incr
1f20: 6e 0a 09 20 20 20 20 73 65 74 20 20 70 20 5b 72 n.. set p [r
1f30: 65 70 6f 73 69 74 6f 72 79 20 70 72 6f 6a 65 63 epository projec
1f40: 74 6f 66 20 24 6c 61 73 74 70 72 6f 6a 65 63 74 tof $lastproject
1f50: 5d 0a 09 20 20 20 20 70 72 6f 6a 65 63 74 3a 3a ].. project::
1f60: 72 65 76 20 25 41 55 54 4f 25 20 24 70 20 73 79 rev %AUTO% $p sy
1f70: 6d 20 24 6c 61 73 74 73 79 6d 62 6f 6c 20 24 72 m $lastsymbol $r
1f80: 65 76 69 73 69 6f 6e 73 0a 09 7d 0a 0a 09 73 65 evisions..}...se
1f90: 74 20 6c 61 73 74 73 79 6d 62 6f 6c 20 7b 7d 0a t lastsymbol {}.
1fa0: 09 73 65 74 20 6c 61 73 70 72 6f 6a 65 63 74 20 .set lasproject
1fb0: 7b 7d 0a 09 73 65 74 20 72 65 76 69 73 69 6f 6e {}..set revision
1fc0: 73 20 20 7b 7d 0a 0a 09 66 6f 72 65 61 63 68 20 s {}...foreach
1fd0: 7b 73 69 64 20 72 69 64 20 70 69 64 7d 20 5b 73 {sid rid pid} [s
1fe0: 74 61 74 65 20 72 75 6e 20 7b 0a 09 20 20 20 20 tate run {..
1ff0: 53 45 4c 45 43 54 20 53 2e 73 69 64 2c 20 52 2e SELECT S.sid, R.
2000: 72 69 64 2c 20 53 2e 70 69 64 0a 09 20 20 20 20 rid, S.pid..
2010: 46 52 4f 4d 20 20 62 72 61 6e 63 68 20 42 2c 20 FROM branch B,
2020: 72 65 76 69 73 69 6f 6e 20 52 2c 20 73 79 6d 62 revision R, symb
2030: 6f 6c 20 53 20 20 2d 2d 20 42 20 3d 3d 3e 20 52 ol S -- B ==> R
2040: 2f 53 2c 20 75 73 69 6e 67 20 50 4b 20 69 6e 64 /S, using PK ind
2050: 69 63 65 73 20 6f 66 20 52 2c 20 53 2e 0a 09 20 ices of R, S...
2060: 20 20 20 57 48 45 52 45 20 42 2e 72 6f 6f 74 20 WHERE B.root
2070: 3d 20 52 2e 72 69 64 0a 09 20 20 20 20 41 4e 44 = R.rid.. AND
2080: 20 20 20 42 2e 73 69 64 20 20 3d 20 53 2e 73 69 B.sid = S.si
2090: 64 0a 09 20 20 20 20 4f 52 44 45 52 20 42 59 20 d.. ORDER BY
20a0: 53 2e 73 69 64 2c 20 52 2e 64 61 74 65 0a 09 7d S.sid, R.date..}
20b0: 5d 20 7b 0a 09 20 20 20 20 69 66 20 7b 24 6c 61 ] {.. if {$la
20c0: 73 74 73 79 6d 62 6f 6c 20 21 3d 20 24 73 69 64 stsymbol != $sid
20d0: 7d 20 7b 0a 09 09 69 66 20 7b 5b 6c 6c 65 6e 67 } {...if {[lleng
20e0: 74 68 20 24 72 65 76 69 73 69 6f 6e 73 5d 7d 20 th $revisions]}
20f0: 7b 0a 09 09 20 20 20 20 69 6e 63 72 20 6e 0a 09 {... incr n..
2100: 09 20 20 20 20 73 65 74 20 20 70 20 5b 72 65 70 . set p [rep
2110: 6f 73 69 74 6f 72 79 20 70 72 6f 6a 65 63 74 6f ository projecto
2120: 66 20 24 6c 61 73 74 70 72 6f 6a 65 63 74 5d 0a f $lastproject].
2130: 09 09 20 20 20 20 70 72 6f 6a 65 63 74 3a 3a 72 .. project::r
2140: 65 76 20 25 41 55 54 4f 25 20 24 70 20 73 79 6d ev %AUTO% $p sym
2150: 20 24 6c 61 73 74 73 79 6d 62 6f 6c 20 24 72 65 $lastsymbol $re
2160: 76 69 73 69 6f 6e 73 0a 09 09 20 20 20 20 73 65 visions... se
2170: 74 20 72 65 76 69 73 69 6f 6e 73 20 7b 7d 0a 09 t revisions {}..
2180: 09 7d 0a 09 09 73 65 74 20 6c 61 73 74 73 79 6d .}...set lastsym
2190: 62 6f 6c 20 20 24 73 69 64 0a 09 09 73 65 74 20 bol $sid...set
21a0: 6c 61 73 74 70 72 6f 6a 65 63 74 20 24 70 69 64 lastproject $pid
21b0: 0a 09 20 20 20 20 7d 0a 09 20 20 20 20 6c 61 70 .. }.. lap
21c0: 70 65 6e 64 20 72 65 76 69 73 69 6f 6e 73 20 24 pend revisions $
21d0: 72 69 64 0a 09 7d 0a 0a 09 69 66 20 7b 5b 6c 6c rid..}...if {[ll
21e0: 65 6e 67 74 68 20 24 72 65 76 69 73 69 6f 6e 73 ength $revisions
21f0: 5d 7d 20 7b 0a 09 20 20 20 20 69 6e 63 72 20 6e ]} {.. incr n
2200: 0a 09 20 20 20 20 73 65 74 20 20 70 20 5b 72 65 .. set p [re
2210: 70 6f 73 69 74 6f 72 79 20 70 72 6f 6a 65 63 74 pository project
2220: 6f 66 20 24 6c 61 73 74 70 72 6f 6a 65 63 74 5d of $lastproject]
2230: 0a 09 20 20 20 20 70 72 6f 6a 65 63 74 3a 3a 72 .. project::r
2240: 65 76 20 25 41 55 54 4f 25 20 24 70 20 73 79 6d ev %AUTO% $p sym
2250: 20 24 6c 61 73 74 73 79 6d 62 6f 6c 20 24 72 65 $lastsymbol $re
2260: 76 69 73 69 6f 6e 73 0a 09 7d 0a 0a 09 6c 6f 67 visions..}...log
2270: 20 77 72 69 74 65 20 34 20 69 6e 69 74 63 73 65 write 4 initcse
2280: 74 73 20 22 43 72 65 61 74 65 64 20 5b 6e 73 70 ts "Created [nsp
2290: 20 24 6e 20 7b 73 79 6d 62 6f 6c 20 63 68 61 6e $n {symbol chan
22a0: 67 65 73 65 74 7d 5d 22 0a 09 72 65 74 75 72 6e geset}]"..return
22b0: 0a 20 20 20 20 7d 0a 0a 20 20 20 20 70 72 6f 63 . }.. proc
22c0: 20 42 72 65 61 6b 49 6e 74 65 72 6e 61 6c 44 65 BreakInternalDe
22d0: 70 65 6e 64 65 6e 63 69 65 73 20 7b 7d 20 7b 0a pendencies {} {.
22e0: 09 23 20 54 68 69 73 20 63 6f 64 65 20 6f 70 65 .# This code ope
22f0: 72 61 74 65 73 20 6f 6e 20 74 68 65 20 72 65 76 rates on the rev
2300: 69 73 69 6f 6e 20 63 68 61 6e 67 65 73 65 74 73 ision changesets
2310: 20 63 72 65 61 74 65 64 20 62 79 0a 09 23 20 27 created by..# '
2320: 43 72 65 61 74 65 52 65 76 69 73 69 6f 6e 43 68 CreateRevisionCh
2330: 61 6e 67 65 73 65 74 73 27 2e 20 41 73 20 73 75 angesets'. As su
2340: 63 68 20 69 74 20 68 61 73 20 74 6f 20 66 6f 6c ch it has to fol
2350: 6c 6f 77 20 61 66 74 65 72 0a 09 23 20 69 74 2c low after..# it,
2360: 20 62 65 66 6f 72 65 20 74 68 65 20 73 79 6d 62 before the symb
2370: 6f 6c 20 63 68 61 6e 67 65 73 65 74 73 20 61 72 ol changesets ar
2380: 65 20 6d 61 64 65 2e 20 54 68 65 20 63 68 61 6e e made. The chan
2390: 67 65 73 65 74 73 0a 09 23 20 61 72 65 20 69 6e gesets..# are in
23a0: 73 70 65 63 74 65 64 20 66 6f 72 20 69 6e 74 65 spected for inte
23b0: 72 6e 61 6c 20 63 6f 6e 66 6c 69 63 74 73 20 61 rnal conflicts a
23c0: 6e 64 20 61 6e 79 20 73 75 63 68 20 61 72 65 20 nd any such are
23d0: 62 72 6f 6b 65 6e 0a 09 23 20 62 79 20 73 70 6c broken..# by spl
23e0: 69 74 74 69 6e 67 20 74 68 65 20 70 72 6f 62 6c itting the probl
23f0: 65 6d 61 74 69 63 20 63 68 61 6e 67 65 73 65 74 ematic changeset
2400: 20 69 6e 74 6f 20 6d 75 6c 74 69 70 6c 65 0a 09 into multiple..
2410: 23 20 66 72 61 67 6d 65 6e 74 73 2e 20 54 68 65 # fragments. The
2420: 20 72 65 73 75 6c 74 73 20 61 72 65 20 63 68 61 results are cha
2430: 6e 67 65 73 65 74 73 20 77 68 69 63 68 20 68 61 ngesets which ha
2440: 76 65 20 6e 6f 20 69 6e 74 65 72 6e 61 6c 0a 09 ve no internal..
2450: 23 20 64 65 70 65 6e 64 65 6e 63 69 65 73 2c 20 # dependencies,
2460: 6f 6e 6c 79 20 65 78 74 65 72 6e 61 6c 20 6f 6e only external on
2470: 65 73 2e 0a 0a 09 6c 6f 67 20 77 72 69 74 65 20 es....log write
2480: 33 20 69 6e 69 74 63 73 65 74 73 20 7b 42 72 65 3 initcsets {Bre
2490: 61 6b 20 69 6e 74 65 72 6e 61 6c 20 64 65 70 65 ak internal depe
24a0: 6e 64 65 6e 63 69 65 73 7d 0a 09 73 65 74 20 6f ndencies}..set o
24b0: 6c 64 20 5b 6c 6c 65 6e 67 74 68 20 5b 70 72 6f ld [llength [pro
24c0: 6a 65 63 74 3a 3a 72 65 76 20 61 6c 6c 5d 5d 0a ject::rev all]].
24d0: 0a 09 66 6f 72 65 61 63 68 20 63 73 65 74 20 5b ..foreach cset [
24e0: 70 72 6f 6a 65 63 74 3a 3a 72 65 76 20 61 6c 6c project::rev all
24f0: 5d 20 7b 0a 09 20 20 20 20 24 63 73 65 74 20 62 ] {.. $cset b
2500: 72 65 61 6b 69 6e 74 65 72 6e 61 6c 64 65 70 65 reakinternaldepe
2510: 6e 64 65 6e 63 69 65 73 0a 09 7d 0a 0a 09 73 65 ndencies..}...se
2520: 74 20 6e 20 5b 65 78 70 72 20 7b 5b 6c 6c 65 6e t n [expr {[llen
2530: 67 74 68 20 5b 70 72 6f 6a 65 63 74 3a 3a 72 65 gth [project::re
2540: 76 20 61 6c 6c 5d 5d 20 2d 20 24 6f 6c 64 7d 5d v all]] - $old}]
2550: 0a 09 6c 6f 67 20 77 72 69 74 65 20 34 20 69 6e ..log write 4 in
2560: 69 74 63 73 65 74 73 20 22 43 72 65 61 74 65 64 itcsets "Created
2570: 20 5b 6e 73 70 20 24 6e 20 7b 61 64 64 69 74 69 [nsp $n {additi
2580: 6f 6e 61 6c 20 72 65 76 69 73 69 6f 6e 20 63 68 onal revision ch
2590: 61 6e 67 65 73 65 74 7d 5d 22 0a 09 6c 6f 67 20 angeset}]"..log
25a0: 77 72 69 74 65 20 34 20 69 6e 69 74 63 73 65 74 write 4 initcset
25b0: 73 20 4f 6b 2e 0a 09 72 65 74 75 72 6e 0a 20 20 s Ok...return.
25c0: 20 20 7d 0a 0a 20 20 20 20 70 72 6f 63 20 50 65 }.. proc Pe
25d0: 72 73 69 73 74 54 68 65 43 68 61 6e 67 65 73 65 rsistTheChangese
25e0: 74 73 20 7b 7d 20 7b 0a 09 6c 6f 67 20 77 72 69 ts {} {..log wri
25f0: 74 65 20 33 20 69 6e 69 74 63 73 65 74 73 20 22 te 3 initcsets "
2600: 53 61 76 69 6e 67 20 5b 6e 73 70 20 5b 6c 6c 65 Saving [nsp [lle
2610: 6e 67 74 68 20 5b 70 72 6f 6a 65 63 74 3a 3a 72 ngth [project::r
2620: 65 76 20 61 6c 6c 5d 5d 20 7b 69 6e 69 74 69 61 ev all]] {initia
2630: 6c 20 63 68 61 6e 67 65 73 65 74 7d 5d 20 74 6f l changeset}] to
2640: 20 74 68 65 20 70 65 72 73 69 73 74 65 6e 74 20 the persistent
2650: 73 74 61 74 65 22 0a 0a 09 66 6f 72 65 61 63 68 state"...foreach
2660: 20 63 73 65 74 20 5b 70 72 6f 6a 65 63 74 3a 3a cset [project::
2670: 72 65 76 20 61 6c 6c 5d 20 7b 0a 09 20 20 20 20 rev all] {..
2680: 24 63 73 65 74 20 70 65 72 73 69 73 74 0a 09 7d $cset persist..}
2690: 0a 0a 09 6c 6f 67 20 77 72 69 74 65 20 34 20 69 ...log write 4 i
26a0: 6e 69 74 63 73 65 74 73 20 4f 6b 2e 0a 09 72 65 nitcsets Ok...re
26b0: 74 75 72 6e 0a 20 20 20 20 7d 0a 0a 20 20 20 20 turn. }..
26c0: 23 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 # # ## ### #####
26d0: 20 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 ######## ######
26e0: 23 23 23 23 23 23 23 0a 20 20 20 20 23 23 20 43 #######. ## C
26f0: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 0a 0a 20 20 onfiguration..
2700: 20 20 70 72 61 67 6d 61 20 2d 68 61 73 69 6e 73 pragma -hasins
2710: 74 61 6e 63 65 73 20 20 20 6e 6f 20 3b 20 23 20 tances no ; #
2720: 73 69 6e 67 6c 65 74 6f 6e 0a 20 20 20 20 70 72 singleton. pr
2730: 61 67 6d 61 20 2d 68 61 73 74 79 70 65 69 6e 66 agma -hastypeinf
2740: 6f 20 20 20 20 6e 6f 20 3b 20 23 20 6e 6f 20 69 o no ; # no i
2750: 6e 74 72 6f 73 70 65 63 74 69 6f 6e 0a 20 20 20 ntrospection.
2760: 20 70 72 61 67 6d 61 20 2d 68 61 73 74 79 70 65 pragma -hastype
2770: 64 65 73 74 72 6f 79 20 6e 6f 20 3b 20 23 20 69 destroy no ; # i
2780: 6d 6d 6f 72 74 61 6c 0a 0a 20 20 20 20 23 20 23 mmortal.. # #
2790: 20 23 23 20 23 23 23 20 23 23 23 23 23 20 23 23 ## ### ##### ##
27a0: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23 ###### #########
27b0: 23 23 23 23 0a 7d 0a 0a 6e 61 6d 65 73 70 61 63 ####.}..namespac
27c0: 65 20 65 76 61 6c 20 3a 3a 76 63 3a 3a 66 6f 73 e eval ::vc::fos
27d0: 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 sil::import::cvs
27e0: 3a 3a 70 61 73 73 20 7b 0a 20 20 20 20 6e 61 6d ::pass {. nam
27f0: 65 73 70 61 63 65 20 65 78 70 6f 72 74 20 69 6e espace export in
2800: 69 74 63 73 65 74 73 0a 20 20 20 20 6e 61 6d 65 itcsets. name
2810: 73 70 61 63 65 20 65 76 61 6c 20 69 6e 69 74 63 space eval initc
2820: 73 65 74 73 20 7b 0a 09 6e 61 6d 65 73 70 61 63 sets {..namespac
2830: 65 20 69 6d 70 6f 72 74 20 3a 3a 76 63 3a 3a 66 e import ::vc::f
2840: 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 ossil::import::c
2850: 76 73 3a 3a 72 65 70 6f 73 69 74 6f 72 79 0a 09 vs::repository..
2860: 6e 61 6d 65 73 70 61 63 65 20 69 6d 70 6f 72 74 namespace import
2870: 20 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 ::vc::fossil::i
2880: 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 73 74 61 74 mport::cvs::stat
2890: 65 0a 09 6e 61 6d 65 73 70 61 63 65 20 69 6d 70 e..namespace imp
28a0: 6f 72 74 20 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c ort ::vc::fossil
28b0: 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 69 ::import::cvs::i
28c0: 6e 74 65 67 72 69 74 79 0a 09 6e 61 6d 65 73 70 ntegrity..namesp
28d0: 61 63 65 20 65 76 61 6c 20 70 72 6f 6a 65 63 74 ace eval project
28e0: 20 7b 0a 09 20 20 20 20 6e 61 6d 65 73 70 61 63 {.. namespac
28f0: 65 20 69 6d 70 6f 72 74 20 3a 3a 76 63 3a 3a 66 e import ::vc::f
2900: 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 ossil::import::c
2910: 76 73 3a 3a 70 72 6f 6a 65 63 74 3a 3a 72 65 76 vs::project::rev
2920: 0a 09 7d 0a 09 6e 61 6d 65 73 70 61 63 65 20 69 ..}..namespace i
2930: 6d 70 6f 72 74 20 3a 3a 76 63 3a 3a 74 6f 6f 6c mport ::vc::tool
2940: 73 3a 3a 6d 69 73 63 3a 3a 2a 0a 09 6e 61 6d 65 s::misc::*..name
2950: 73 70 61 63 65 20 69 6d 70 6f 72 74 20 3a 3a 76 space import ::v
2960: 63 3a 3a 74 6f 6f 6c 73 3a 3a 6c 6f 67 0a 09 6c c::tools::log..l
2970: 6f 67 20 72 65 67 69 73 74 65 72 20 69 6e 69 74 og register init
2980: 63 73 65 74 73 0a 20 20 20 20 7d 0a 7d 0a 0a 23 csets. }.}..#
2990: 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20 # ## ### #####
29a0: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23 ######## #######
29b0: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23 ###### #########
29c0: 23 23 23 23 23 23 23 23 23 23 23 23 0a 23 23 20 ############.##
29d0: 52 65 61 64 79 0a 0a 70 61 63 6b 61 67 65 20 70 Ready..package p
29e0: 72 6f 76 69 64 65 20 76 63 3a 3a 66 6f 73 73 69 rovide vc::fossi
29f0: 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a l::import::cvs::
2a00: 70 61 73 73 3a 3a 69 6e 69 74 63 73 65 74 73 20 pass::initcsets
2a10: 31 2e 30 0a 72 65 74 75 72 6e 0a 1.0.return.