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 72 65 76 20 3b 20 23 20 50 72 6f ect::rev ; # Pro
0550: 6a 65 63 74 20 6c 65 76 65 6c 20 63 68 61 6e 67 ject level chang
0560: 65 73 65 74 73 0a 0a 23 20 23 20 23 23 20 23 23 esets..# # ## ##
0570: 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23 23 # ##### ########
0580: 20 23 23 23 23 23 23 23 23 23 23 23 23 23 20 23 ############# #
0590: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
05a0: 23 23 23 23 0a 23 23 20 52 65 67 69 73 74 65 72 ####.## Register
05b0: 20 74 68 65 20 70 61 73 73 20 77 69 74 68 20 74 the pass with t
05c0: 68 65 20 6d 61 6e 61 67 65 6d 65 6e 74 0a 0a 76 he management..v
05d0: 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 c::fossil::impor
05e0: 74 3a 3a 63 76 73 3a 3a 70 61 73 73 20 64 65 66 t::cvs::pass def
05f0: 69 6e 65 20 5c 0a 20 20 20 20 49 6e 69 74 43 73 ine \. InitCs
0600: 65 74 73 20 5c 0a 20 20 20 20 7b 49 6e 69 74 69 ets \. {Initi
0610: 61 6c 69 7a 65 20 43 68 61 6e 67 65 53 65 74 73 alize ChangeSets
0620: 7d 20 5c 0a 20 20 20 20 3a 3a 76 63 3a 3a 66 6f } \. ::vc::fo
0630: 73 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 ssil::import::cv
0640: 73 3a 3a 70 61 73 73 3a 3a 69 6e 69 74 63 73 65 s::pass::initcse
0650: 74 73 0a 0a 23 20 23 20 23 23 20 23 23 23 20 23 ts..# # ## ### #
0660: 23 23 23 23 20 23 23 23 23 23 23 23 23 20 23 23 #### ######## ##
0670: 23 23 23 23 23 23 23 23 23 23 23 20 23 23 23 23 ########### ####
0680: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0690: 23 0a 23 23 0a 0a 73 6e 69 74 3a 3a 74 79 70 65 #.##..snit::type
06a0: 20 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 ::vc::fossil::i
06b0: 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 70 61 73 73 mport::cvs::pass
06c0: 3a 3a 69 6e 69 74 63 73 65 74 73 20 7b 0a 20 20 ::initcsets {.
06d0: 20 20 23 20 23 20 23 23 20 23 23 23 20 23 23 23 # # ## ### ###
06e0: 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23 ## ######## ####
06f0: 23 23 23 23 23 23 23 23 23 0a 20 20 20 20 23 23 #########. ##
0700: 20 50 75 62 6c 69 63 20 41 50 49 0a 0a 20 20 20 Public API..
0710: 20 74 79 70 65 6d 65 74 68 6f 64 20 73 65 74 75 typemethod setu
0720: 70 20 7b 7d 20 7b 0a 09 23 20 44 65 66 69 6e 65 p {} {..# Define
0730: 20 74 68 65 20 6e 61 6d 65 73 20 61 6e 64 20 73 the names and s
0740: 74 72 75 63 74 75 72 65 20 6f 66 20 74 68 65 20 tructure of the
0750: 70 65 72 73 69 73 74 65 6e 74 20 73 74 61 74 65 persistent state
0760: 20 6f 66 0a 09 23 20 74 68 69 73 20 70 61 73 73 of..# this pass
0770: 2e 0a 0a 09 73 74 61 74 65 20 75 73 65 20 70 72 ....state use pr
0780: 6f 6a 65 63 74 0a 09 73 74 61 74 65 20 75 73 65 oject..state use
0790: 20 66 69 6c 65 0a 09 73 74 61 74 65 20 75 73 65 file..state use
07a0: 20 72 65 76 69 73 69 6f 6e 0a 09 73 74 61 74 65 revision..state
07b0: 20 75 73 65 20 72 65 76 69 73 69 6f 6e 62 72 61 use revisionbra
07c0: 6e 63 68 63 68 69 6c 64 72 65 6e 0a 09 73 74 61 nchchildren..sta
07d0: 74 65 20 75 73 65 20 62 72 61 6e 63 68 0a 09 73 te use branch..s
07e0: 74 61 74 65 20 75 73 65 20 74 61 67 0a 09 73 74 tate use tag..st
07f0: 61 74 65 20 75 73 65 20 73 79 6d 62 6f 6c 0a 09 ate use symbol..
0800: 73 74 61 74 65 20 75 73 65 20 6d 65 74 61 0a 0a state use meta..
0810: 09 23 20 44 61 74 61 20 70 65 72 20 63 68 61 6e .# Data per chan
0820: 67 65 73 65 74 2c 20 6e 61 6d 65 6c 79 20 74 68 geset, namely th
0830: 65 20 70 72 6f 6a 65 63 74 20 69 74 20 62 65 6c e project it bel
0840: 6f 6e 67 73 20 74 6f 2c 20 68 6f 77 20 69 74 0a ongs to, how it.
0850: 09 23 20 77 61 73 20 69 6e 64 75 63 65 64 20 28 .# was induced (
0860: 72 65 76 69 73 69 6f 6e 20 6f 72 20 73 79 6d 62 revision or symb
0870: 6f 6c 29 2c 20 70 6c 75 73 20 72 65 66 65 72 65 ol), plus refere
0880: 6e 63 65 20 74 6f 20 74 68 65 0a 09 23 20 70 72 nce to the..# pr
0890: 69 6d 61 72 79 20 65 6e 74 72 79 20 63 61 75 73 imary entry caus
08a0: 69 6e 67 20 69 74 20 28 6d 65 74 61 20 65 6e 74 ing it (meta ent
08b0: 72 79 20 6f 72 20 73 79 6d 62 6f 6c 29 2e 20 41 ry or symbol). A
08c0: 6e 20 61 64 6a 75 6e 63 74 0a 09 23 20 74 61 62 n adjunct..# tab
08d0: 6c 65 20 74 72 61 6e 73 6c 61 74 65 73 20 74 68 le translates th
08e0: 65 20 74 79 70 65 20 69 64 27 73 20 69 6e 74 6f e type id's into
08f0: 20 68 75 6d 61 6e 20 72 65 61 64 61 62 6c 65 20 human readable
0900: 6c 61 62 65 6c 73 2e 0a 0a 09 73 74 61 74 65 20 labels....state
0910: 65 78 74 65 6e 64 20 63 68 61 6e 67 65 73 65 74 extend changeset
0920: 20 7b 0a 09 20 20 20 20 63 69 64 20 20 20 49 4e {.. cid IN
0930: 54 45 47 45 52 20 20 4e 4f 54 20 4e 55 4c 4c 20 TEGER NOT NULL
0940: 20 50 52 49 4d 41 52 59 20 4b 45 59 20 20 41 55 PRIMARY KEY AU
0950: 54 4f 49 4e 43 52 45 4d 45 4e 54 2c 0a 09 20 20 TOINCREMENT,..
0960: 20 20 70 69 64 20 20 20 49 4e 54 45 47 45 52 20 pid INTEGER
0970: 20 4e 4f 54 20 4e 55 4c 4c 20 20 52 45 46 45 52 NOT NULL REFER
0980: 45 4e 43 45 53 20 70 72 6f 6a 65 63 74 2c 0a 09 ENCES project,..
0990: 20 20 20 20 74 79 70 65 20 20 49 4e 54 45 47 45 type INTEGE
09a0: 52 20 20 4e 4f 54 20 4e 55 4c 4c 20 20 52 45 46 R NOT NULL REF
09b0: 45 52 45 4e 43 45 53 20 63 73 74 79 70 65 2c 0a ERENCES cstype,.
09c0: 09 20 20 20 20 73 72 63 20 20 20 49 4e 54 45 47 . src INTEG
09d0: 45 52 20 20 4e 4f 54 20 4e 55 4c 4c 20 2d 2d 20 ER NOT NULL --
09e0: 52 45 46 45 52 45 4e 43 45 53 20 6d 65 74 61 7c REFERENCES meta|
09f0: 73 79 6d 62 6f 6c 20 28 74 79 70 65 20 64 65 70 symbol (type dep
0a00: 65 6e 64 65 6e 74 29 0a 09 7d 0a 09 73 74 61 74 endent)..}..stat
0a10: 65 20 65 78 74 65 6e 64 20 63 73 74 79 70 65 20 e extend cstype
0a20: 7b 0a 09 20 20 20 20 74 69 64 20 20 20 49 4e 54 {.. tid INT
0a30: 45 47 45 52 20 20 4e 4f 54 20 4e 55 4c 4c 20 20 EGER NOT NULL
0a40: 50 52 49 4d 41 52 59 20 4b 45 59 20 20 41 55 54 PRIMARY KEY AUT
0a50: 4f 49 4e 43 52 45 4d 45 4e 54 2c 0a 09 20 20 20 OINCREMENT,..
0a60: 20 6e 61 6d 65 20 20 54 45 58 54 20 20 20 20 20 name TEXT
0a70: 4e 4f 54 20 4e 55 4c 4c 2c 0a 09 20 20 20 20 55 NOT NULL,.. U
0a80: 4e 49 51 55 45 20 28 6e 61 6d 65 29 0a 09 7d 0a NIQUE (name)..}.
0a90: 09 23 20 4e 6f 74 65 3a 20 4b 65 65 70 20 74 68 .# Note: Keep th
0aa0: 65 20 6c 61 62 65 6c 73 20 75 73 65 64 20 68 65 e labels used he
0ab0: 72 65 20 69 6e 20 73 79 6e 63 20 77 69 74 68 20 re in sync with
0ac0: 74 68 65 20 6e 61 6d 65 73 20 66 6f 72 0a 09 23 the names for..#
0ad0: 20 20 20 20 20 20 20 73 69 6e 67 6c 65 74 6f 6e singleton
0ae0: 20 68 65 6c 70 65 72 20 63 6c 61 73 73 65 73 20 helper classes
0af0: 66 6f 72 20 27 70 72 6f 6a 65 63 74 3a 3a 72 65 for 'project::re
0b00: 76 27 2e 20 54 68 65 79 20 61 72 65 0a 09 23 20 v'. They are..#
0b10: 20 20 20 20 20 20 74 68 65 20 76 61 6c 69 64 20 the valid
0b20: 74 79 70 65 20 6e 61 6d 65 73 20 66 6f 72 20 63 type names for c
0b30: 68 61 6e 67 65 73 65 74 73 20 61 6e 64 20 61 6c hangesets and al
0b40: 73 6f 20 68 61 72 64 77 69 72 65 64 0a 09 23 20 so hardwired..#
0b50: 20 20 20 20 20 20 69 6e 20 73 6f 6d 65 20 63 6f in some co
0b60: 64 65 2e 0a 09 73 74 61 74 65 20 72 75 6e 20 7b de...state run {
0b70: 0a 09 20 20 20 20 49 4e 53 45 52 54 20 49 4e 54 .. INSERT INT
0b80: 4f 20 63 73 74 79 70 65 20 56 41 4c 55 45 53 20 O cstype VALUES
0b90: 28 30 2c 27 72 65 76 27 29 3b 0a 09 20 20 20 20 (0,'rev');..
0ba0: 49 4e 53 45 52 54 20 49 4e 54 4f 20 63 73 74 79 INSERT INTO csty
0bb0: 70 65 20 56 41 4c 55 45 53 20 28 31 2c 27 73 79 pe VALUES (1,'sy
0bc0: 6d 3a 3a 74 61 67 27 29 3b 0a 09 20 20 20 20 49 m::tag');.. I
0bd0: 4e 53 45 52 54 20 49 4e 54 4f 20 63 73 74 79 70 NSERT INTO cstyp
0be0: 65 20 56 41 4c 55 45 53 20 28 32 2c 27 73 79 6d e VALUES (2,'sym
0bf0: 3a 3a 62 72 61 6e 63 68 27 29 3b 0a 09 7d 0a 0a ::branch');..}..
0c00: 09 23 20 4d 61 70 20 66 72 6f 6d 20 63 68 61 6e .# Map from chan
0c10: 67 65 73 65 74 73 20 74 6f 20 74 68 65 20 28 66 gesets to the (f
0c20: 69 6c 65 20 6c 65 76 65 6c 29 20 72 65 76 69 73 ile level) revis
0c30: 69 6f 6e 73 2c 20 74 61 67 73 2c 20 6f 72 0a 09 ions, tags, or..
0c40: 23 20 62 72 61 6e 63 68 65 73 20 74 68 65 79 20 # branches they
0c50: 63 6f 6e 74 61 69 6e 2e 20 54 68 65 20 70 6f 73 contain. The pos
0c60: 27 69 74 69 6f 6e 20 70 72 6f 76 69 64 65 73 20 'ition provides
0c70: 61 6e 20 6f 72 64 65 72 20 6f 66 0a 09 23 20 74 an order of..# t
0c80: 68 65 20 69 74 65 6d 73 20 77 69 74 68 69 6e 20 he items within
0c90: 61 20 63 68 61 6e 67 65 73 65 74 2e 20 54 68 65 a changeset. The
0ca0: 79 20 61 72 65 20 75 6e 69 71 75 65 20 77 69 74 y are unique wit
0cb0: 68 69 6e 20 74 68 65 0a 09 23 20 63 68 61 6e 67 hin the..# chang
0cc0: 65 73 65 74 2e 20 20 54 68 65 20 69 74 65 6d 73 eset. The items
0cd0: 20 61 72 65 20 69 6e 20 70 72 69 6e 63 69 70 6c are in principl
0ce0: 65 20 75 6e 69 71 75 65 2c 20 69 66 20 77 65 20 e unique, if we
0cf0: 77 65 72 65 0a 09 23 20 6c 6f 6f 6b 69 6e 67 20 were..# looking
0d00: 6f 6e 6c 79 20 61 74 20 72 65 6c 65 76 61 6e 74 only at relevant
0d10: 20 63 68 61 6e 67 65 73 65 74 73 2e 20 48 6f 77 changesets. How
0d20: 65 76 65 72 20 61 73 20 74 68 65 79 20 63 6f 6d ever as they com
0d30: 65 0a 09 23 20 66 72 6f 6d 20 64 69 73 70 61 72 e..# from dispar
0d40: 61 74 65 20 73 6f 75 72 63 65 73 20 74 68 65 20 ate sources the
0d50: 73 61 6d 65 20 69 64 20 6d 61 79 20 68 61 76 65 same id may have
0d60: 20 64 69 66 66 65 72 65 6e 74 0a 09 23 20 6d 65 different..# me
0d70: 61 6e 69 6e 67 2c 20 62 65 20 69 6e 20 64 69 66 aning, be in dif
0d80: 66 65 72 65 6e 74 20 63 68 61 6e 67 65 73 65 74 ferent changeset
0d90: 73 20 61 6e 64 20 73 6f 20 69 73 20 66 6f 72 6d s and so is form
0da0: 61 6c 6c 79 20 6e 6f 74 0a 09 23 20 75 6e 69 71 ally not..# uniq
0db0: 75 65 2e 20 53 6f 20 77 65 20 63 61 6e 20 6f 6e ue. So we can on
0dc0: 6c 79 20 73 61 79 20 74 68 61 74 20 69 74 20 69 ly say that it i
0dd0: 73 20 75 6e 69 71 75 65 20 77 69 74 68 69 6e 20 s unique within
0de0: 74 68 65 0a 09 23 20 63 68 61 6e 67 65 73 65 74 the..# changeset
0df0: 2e 20 54 68 65 20 69 6e 74 65 67 72 69 74 79 20 . The integrity
0e00: 6d 6f 64 75 6c 65 20 68 61 73 20 73 74 72 6f 6e module has stron
0e10: 67 65 72 20 63 68 65 63 6b 73 2e 0a 0a 09 73 74 ger checks....st
0e20: 61 74 65 20 65 78 74 65 6e 64 20 63 73 69 74 65 ate extend csite
0e30: 6d 20 7b 0a 09 20 20 20 20 63 69 64 20 20 49 4e m {.. cid IN
0e40: 54 45 47 45 52 20 20 4e 4f 54 20 4e 55 4c 4c 20 TEGER NOT NULL
0e50: 20 52 45 46 45 52 45 4e 43 45 53 20 63 68 61 6e REFERENCES chan
0e60: 67 65 73 65 74 2c 0a 09 20 20 20 20 70 6f 73 20 geset,.. pos
0e70: 20 49 4e 54 45 47 45 52 20 20 4e 4f 54 20 4e 55 INTEGER NOT NU
0e80: 4c 4c 2c 0a 09 20 20 20 20 69 69 64 20 20 49 4e LL,.. iid IN
0e90: 54 45 47 45 52 20 20 4e 4f 54 20 4e 55 4c 4c 2c TEGER NOT NULL,
0ea0: 20 2d 2d 20 52 45 46 45 52 45 4e 43 45 53 20 72 -- REFERENCES r
0eb0: 65 76 69 73 69 6f 6e 7c 74 61 67 7c 62 72 61 6e evision|tag|bran
0ec0: 63 68 0a 09 20 20 20 20 55 4e 49 51 55 45 20 28 ch.. UNIQUE (
0ed0: 63 69 64 2c 20 70 6f 73 29 2c 0a 09 20 20 20 20 cid, pos),..
0ee0: 55 4e 49 51 55 45 20 28 63 69 64 2c 20 69 69 64 UNIQUE (cid, iid
0ef0: 29 0a 09 7d 20 7b 20 69 69 64 20 7d 0a 09 23 20 )..} { iid }..#
0f00: 49 6e 64 65 78 20 6f 6e 3a 20 69 69 64 20 28 73 Index on: iid (s
0f10: 75 63 63 65 73 73 6f 72 2f 70 72 65 64 65 63 65 uccessor/predece
0f20: 73 73 6f 72 20 72 65 74 72 69 65 76 61 6c 29 0a ssor retrieval).
0f30: 0a 09 70 72 6f 6a 65 63 74 3a 3a 72 65 76 20 67 ..project::rev g
0f40: 65 74 63 73 74 79 70 65 73 0a 09 72 65 74 75 72 etcstypes..retur
0f50: 6e 0a 20 20 20 20 7d 0a 0a 20 20 20 20 74 79 70 n. }.. typ
0f60: 65 6d 65 74 68 6f 64 20 6c 6f 61 64 20 7b 7d 20 emethod load {}
0f70: 7b 0a 09 23 20 50 61 73 73 20 6d 61 6e 61 67 65 {..# Pass manage
0f80: 72 20 69 6e 74 65 72 66 61 63 65 2e 20 45 78 65 r interface. Exe
0f90: 63 75 74 65 64 20 74 6f 20 6c 6f 61 64 20 64 61 cuted to load da
0fa0: 74 61 20 63 6f 6d 70 75 74 65 64 20 62 79 0a 09 ta computed by..
0fb0: 23 20 74 68 69 73 20 70 61 73 73 20 69 6e 74 6f # this pass into
0fc0: 20 6d 65 6d 6f 72 79 20 77 68 65 6e 20 74 68 69 memory when thi
0fd0: 73 20 70 61 73 73 20 69 73 20 73 6b 69 70 70 65 s pass is skippe
0fe0: 64 20 69 6e 73 74 65 61 64 20 6f 66 0a 09 23 20 d instead of..#
0ff0: 65 78 65 63 75 74 65 64 2e 0a 0a 09 73 74 61 74 executed....stat
1000: 65 20 75 73 65 20 63 68 61 6e 67 65 73 65 74 0a e use changeset.
1010: 09 73 74 61 74 65 20 75 73 65 20 63 73 69 74 65 .state use csite
1020: 6d 0a 09 73 74 61 74 65 20 75 73 65 20 63 73 74 m..state use cst
1030: 79 70 65 0a 0a 09 23 20 4e 65 65 64 20 74 68 65 ype...# Need the
1040: 20 74 79 70 65 73 20 66 69 72 73 74 2c 20 74 68 types first, th
1050: 65 20 63 6f 6e 73 74 72 75 63 74 6f 72 20 75 73 e constructor us
1060: 65 64 20 69 6e 73 69 64 65 20 6f 66 20 74 68 65 ed inside of the
1070: 0a 09 23 20 27 6c 6f 61 64 27 20 62 65 6c 6f 77 ..# 'load' below
1080: 20 75 73 65 73 20 74 68 65 6d 20 74 6f 20 61 73 uses them to as
1090: 73 65 72 74 20 74 68 65 20 63 6f 72 72 65 63 74 sert the correct
10a0: 6e 65 73 73 20 6f 66 20 74 79 70 65 0a 09 23 20 ness of type..#
10b0: 6e 61 6d 65 73 2e 0a 09 70 72 6f 6a 65 63 74 3a names...project:
10c0: 3a 72 65 76 20 67 65 74 63 73 74 79 70 65 73 0a :rev getcstypes.
10d0: 09 70 72 6f 6a 65 63 74 3a 3a 72 65 76 20 6c 6f .project::rev lo
10e0: 61 64 0a 09 70 72 6f 6a 65 63 74 3a 3a 72 65 76 ad..project::rev
10f0: 20 6c 6f 61 64 63 6f 75 6e 74 65 72 0a 09 72 65 loadcounter..re
1100: 74 75 72 6e 0a 20 20 20 20 7d 0a 0a 20 20 20 20 turn. }..
1110: 74 79 70 65 6d 65 74 68 6f 64 20 72 75 6e 20 7b typemethod run {
1120: 7d 20 7b 0a 09 23 20 50 61 73 73 20 6d 61 6e 61 } {..# Pass mana
1130: 67 65 72 20 69 6e 74 65 72 66 61 63 65 2e 20 45 ger interface. E
1140: 78 65 63 75 74 65 64 20 74 6f 20 70 65 72 66 6f xecuted to perfo
1150: 72 6d 20 74 68 65 0a 09 23 20 66 75 6e 63 74 69 rm the..# functi
1160: 6f 6e 61 6c 69 74 79 20 6f 66 20 74 68 65 20 70 onality of the p
1170: 61 73 73 2e 0a 0a 09 73 74 61 74 65 20 74 72 61 ass....state tra
1180: 6e 73 61 63 74 69 6f 6e 20 7b 0a 09 20 20 20 20 nsaction {..
1190: 43 72 65 61 74 65 52 65 76 69 73 69 6f 6e 43 68 CreateRevisionCh
11a0: 61 6e 67 65 73 65 74 73 20 20 3b 20 23 20 47 72 angesets ; # Gr
11b0: 6f 75 70 20 66 69 6c 65 20 72 65 76 69 73 69 6f oup file revisio
11c0: 6e 73 20 69 6e 74 6f 20 63 73 65 74 73 2e 0a 09 ns into csets...
11d0: 20 20 20 20 42 72 65 61 6b 49 6e 74 65 72 6e 61 BreakInterna
11e0: 6c 44 65 70 65 6e 64 65 6e 63 69 65 73 20 3b 20 lDependencies ;
11f0: 23 20 53 70 6c 69 74 20 74 68 65 20 63 73 65 74 # Split the cset
1200: 73 20 62 61 73 65 64 20 6f 6e 20 69 6e 74 65 72 s based on inter
1210: 6e 61 6c 20 63 6f 6e 66 6c 69 63 74 73 2e 0a 09 nal conflicts...
1220: 20 20 20 20 43 72 65 61 74 65 53 79 6d 62 6f 6c CreateSymbol
1230: 43 68 61 6e 67 65 73 65 74 73 20 20 20 20 3b 20 Changesets ;
1240: 23 20 43 72 65 61 74 65 20 63 73 65 74 73 20 66 # Create csets f
1250: 6f 72 20 74 61 67 73 20 61 6e 64 20 62 72 61 6e or tags and bran
1260: 63 68 65 73 2e 0a 09 20 20 20 20 50 65 72 73 69 ches... Persi
1270: 73 74 54 68 65 43 68 61 6e 67 65 73 65 74 73 0a stTheChangesets.
1280: 09 7d 0a 0a 09 72 65 70 6f 73 69 74 6f 72 79 20 .}...repository
1290: 70 72 69 6e 74 63 73 65 74 73 74 61 74 69 73 74 printcsetstatist
12a0: 69 63 73 0a 09 69 6e 74 65 67 72 69 74 79 20 63 ics..integrity c
12b0: 68 61 6e 67 65 73 65 74 73 0a 09 72 65 74 75 72 hangesets..retur
12c0: 6e 0a 20 20 20 20 7d 0a 0a 20 20 20 20 74 79 70 n. }.. typ
12d0: 65 6d 65 74 68 6f 64 20 64 69 73 63 61 72 64 20 emethod discard
12e0: 7b 7d 20 7b 0a 09 23 20 50 61 73 73 20 6d 61 6e {} {..# Pass man
12f0: 61 67 65 72 20 69 6e 74 65 72 66 61 63 65 2e 20 ager interface.
1300: 45 78 65 63 75 74 65 64 20 66 6f 72 20 61 6c 6c Executed for all
1310: 20 70 61 73 73 65 73 20 61 66 74 65 72 20 74 68 passes after th
1320: 65 0a 09 23 20 72 75 6e 20 70 61 73 73 65 73 2c e..# run passes,
1330: 20 74 6f 20 72 65 6d 6f 76 65 20 61 6c 6c 20 64 to remove all d
1340: 61 74 61 20 6f 66 20 74 68 69 73 20 70 61 73 73 ata of this pass
1350: 20 66 72 6f 6d 20 74 68 65 20 73 74 61 74 65 2c from the state,
1360: 0a 09 23 20 61 73 20 62 65 69 6e 67 20 6f 75 74 ..# as being out
1370: 20 6f 66 20 64 61 74 65 2e 0a 0a 09 73 74 61 74 of date....stat
1380: 65 20 64 69 73 63 61 72 64 20 63 68 61 6e 67 65 e discard change
1390: 73 65 74 0a 09 73 74 61 74 65 20 64 69 73 63 61 set..state disca
13a0: 72 64 20 63 73 74 79 70 65 0a 09 73 74 61 74 65 rd cstype..state
13b0: 20 64 69 73 63 61 72 64 20 63 73 69 74 65 6d 0a discard csitem.
13c0: 09 72 65 74 75 72 6e 0a 20 20 20 20 7d 0a 0a 20 .return. }..
13d0: 20 20 20 23 20 23 20 23 23 20 23 23 23 20 23 23 # # ## ### ##
13e0: 23 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 ### ######## ###
13f0: 23 23 23 23 23 23 23 23 23 23 0a 20 20 20 20 23 ##########. #
1400: 23 20 49 6e 74 65 72 6e 61 6c 20 6d 65 74 68 6f # Internal metho
1410: 64 73 0a 0a 20 20 20 20 70 72 6f 63 20 43 72 65 ds.. proc Cre
1420: 61 74 65 52 65 76 69 73 69 6f 6e 43 68 61 6e 67 ateRevisionChang
1430: 65 73 65 74 73 20 7b 7d 20 7b 0a 09 6c 6f 67 20 esets {} {..log
1440: 77 72 69 74 65 20 33 20 69 6e 69 74 63 73 65 74 write 3 initcset
1450: 73 20 7b 43 72 65 61 74 65 20 63 68 61 6e 67 65 s {Create change
1460: 73 65 74 73 20 62 61 73 65 64 20 6f 6e 20 72 65 sets based on re
1470: 76 69 73 69 6f 6e 73 7d 0a 0a 09 23 20 54 6f 20 visions}...# To
1480: 67 65 74 20 74 68 65 20 69 6e 69 74 69 61 6c 20 get the initial
1490: 6f 66 20 63 68 61 6e 67 65 73 65 74 73 20 77 65 of changesets we
14a0: 20 66 69 72 73 74 20 67 72 6f 75 70 20 61 6c 6c first group all
14b0: 20 66 69 6c 65 0a 09 23 20 6c 65 76 65 6c 20 72 file..# level r
14c0: 65 76 69 73 69 6f 6e 73 20 75 73 69 6e 67 20 74 evisions using t
14d0: 68 65 20 73 61 6d 65 20 6d 65 74 61 20 64 61 74 he same meta dat
14e0: 61 20 65 6e 74 72 79 20 74 6f 67 65 74 68 65 72 a entry together
14f0: 2e 20 41 73 0a 09 23 20 74 68 65 20 6d 65 74 61 . As..# the meta
1500: 20 64 61 74 61 20 65 6e 63 6f 64 65 73 20 6e 6f data encodes no
1510: 74 20 6f 6e 6c 79 20 61 75 74 68 6f 72 20 61 6e t only author an
1520: 64 20 6c 6f 67 20 6d 65 73 73 61 67 65 2c 20 62 d log message, b
1530: 75 74 0a 09 23 20 61 6c 73 6f 20 6c 69 6e 65 20 ut..# also line
1540: 6f 66 20 64 65 76 65 6c 6f 70 6d 65 6e 74 20 61 of development a
1550: 6e 64 20 70 72 6f 6a 65 63 74 20 77 65 20 63 61 nd project we ca
1560: 6e 20 62 65 20 73 75 72 65 20 74 68 61 74 0a 09 n be sure that..
1570: 23 20 72 65 76 69 73 69 6f 6e 73 20 69 6e 20 64 # revisions in d
1580: 69 66 66 65 72 65 6e 74 20 70 72 6f 6a 65 63 74 ifferent project
1590: 20 61 6e 64 20 6c 69 6e 65 73 20 6f 66 20 64 65 and lines of de
15a0: 76 65 6c 6f 70 6d 65 6e 74 20 61 72 65 0a 09 23 velopment are..#
15b0: 20 6e 6f 74 20 67 72 6f 75 70 65 64 20 74 6f 67 not grouped tog
15c0: 65 74 68 65 72 2e 20 49 6e 20 63 6f 6e 74 72 61 ether. In contra
15d0: 73 74 20 74 6f 20 63 76 73 32 73 76 6e 20 77 65 st to cvs2svn we
15e0: 20 64 6f 20 5f 5f 6e 6f 74 5f 5f 0a 09 23 20 75 do __not__..# u
15f0: 73 65 20 64 69 73 74 61 6e 63 65 20 69 6e 20 74 se distance in t
1600: 69 6d 65 20 62 65 74 77 65 65 6e 20 72 65 76 69 ime between revi
1610: 73 69 6f 6e 73 20 74 6f 20 62 72 65 61 6b 20 74 sions to break t
1620: 68 65 6d 0a 09 23 20 61 70 61 72 74 2e 20 57 65 hem..# apart. We
1630: 20 68 61 76 65 20 73 65 65 6e 20 43 56 53 20 72 have seen CVS r
1640: 65 70 6f 73 69 74 6f 72 69 65 73 20 28 66 72 6f epositories (fro
1650: 6d 20 53 46 29 20 77 68 65 72 65 20 61 0a 09 23 m SF) where a..#
1660: 20 73 69 6e 67 6c 65 20 63 6f 6d 6d 69 74 20 63 single commit c
1670: 6f 6e 74 61 69 6e 65 64 20 72 65 76 69 73 69 6f ontained revisio
1680: 6e 73 20 73 65 76 65 72 61 6c 20 68 6f 75 72 73 ns several hours
1690: 20 61 70 61 72 74 2c 0a 09 23 20 6c 69 6b 65 6c apart,..# likel
16a0: 79 20 64 75 65 20 74 6f 20 74 72 6f 75 62 6c 65 y due to trouble
16b0: 20 6f 6e 20 74 68 65 20 73 65 72 76 65 72 20 68 on the server h
16c0: 6f 73 74 69 6e 67 20 74 68 65 20 72 65 70 6f 73 osting the repos
16d0: 69 74 6f 72 79 2e 0a 0a 09 23 20 57 65 20 6f 72 itory....# We or
16e0: 64 65 72 20 74 68 65 20 72 65 76 69 73 69 6f 6e der the revision
16f0: 73 20 68 65 72 65 20 62 79 20 74 69 6d 65 2c 20 s here by time,
1700: 74 68 69 73 20 77 69 6c 6c 20 68 65 6c 70 20 74 this will help t
1710: 68 65 0a 09 23 20 6c 61 74 65 72 20 70 61 73 73 he..# later pass
1720: 65 73 20 28 61 76 6f 69 64 73 20 6a 6f 69 6e 73 es (avoids joins
1730: 20 6c 61 74 65 72 20 74 6f 20 67 65 74 20 61 74 later to get at
1740: 20 74 68 65 20 6f 72 64 65 72 69 6e 67 0a 09 23 the ordering..#
1750: 20 69 6e 66 6f 29 2e 0a 0a 09 73 65 74 20 6e 20 info)....set n
1760: 30 0a 0a 09 73 65 74 20 6c 61 73 74 6d 65 74 61 0...set lastmeta
1770: 20 20 20 20 7b 7d 0a 09 73 65 74 20 6c 61 73 74 {}..set last
1780: 70 72 6f 6a 65 63 74 20 7b 7d 0a 09 73 65 74 20 project {}..set
1790: 72 65 76 69 73 69 6f 6e 73 20 20 20 7b 7d 0a 0a revisions {}..
17a0: 09 23 20 4e 6f 74 65 3a 20 57 65 20 63 6f 75 6c .# Note: We coul
17b0: 64 20 68 61 76 65 20 77 72 69 74 74 65 6e 20 74 d have written t
17c0: 68 69 73 20 6c 6f 6f 70 20 74 6f 20 63 72 65 61 his loop to crea
17d0: 74 65 20 74 68 65 20 63 73 65 74 73 0a 09 23 20 te the csets..#
17e0: 20 20 20 20 20 20 65 61 72 6c 79 2c 20 65 78 74 early, ext
17f0: 65 6e 64 69 6e 67 20 74 68 65 6d 20 77 69 74 68 ending them with
1800: 20 61 6c 6c 20 74 68 65 69 72 20 72 65 76 69 73 all their revis
1810: 69 6f 6e 73 2e 20 54 68 69 73 0a 09 23 20 20 20 ions. This..#
1820: 20 20 20 20 68 6f 77 65 76 65 72 20 77 6f 75 6c however woul
1830: 64 20 6d 65 61 6e 20 6c 6f 74 73 20 6f 66 20 28 d mean lots of (
1840: 73 6c 6f 77 29 20 6d 65 74 68 6f 64 20 69 6e 76 slow) method inv
1850: 6f 6b 61 74 69 6f 6e 73 0a 09 23 20 20 20 20 20 okations..#
1860: 20 20 6f 6e 20 74 68 65 20 63 73 65 74 73 2e 20 on the csets.
1870: 44 6f 69 6e 67 20 69 74 20 6c 69 6b 65 20 74 68 Doing it like th
1880: 69 73 2c 20 6c 61 74 65 20 63 72 65 61 74 69 6f is, late creatio
1890: 6e 2c 20 6d 65 61 6e 73 0a 09 23 20 20 20 20 20 n, means..#
18a0: 20 20 6c 65 73 73 20 73 75 63 68 20 63 61 6c 6c less such call
18b0: 73 2e 20 4e 6f 6e 65 2c 20 62 75 74 20 74 68 65 s. None, but the
18c0: 20 63 72 65 61 74 69 6f 6e 20 69 74 73 65 6c 66 creation itself
18d0: 2e 0a 0a 09 66 6f 72 65 61 63 68 20 7b 6d 69 64 ....foreach {mid
18e0: 20 72 69 64 20 70 69 64 7d 20 5b 73 74 61 74 65 rid pid} [state
18f0: 20 72 75 6e 20 7b 0a 09 20 20 20 20 53 45 4c 45 run {.. SELE
1900: 43 54 20 4d 2e 6d 69 64 2c 20 52 2e 72 69 64 2c CT M.mid, R.rid,
1910: 20 4d 2e 70 69 64 0a 09 20 20 20 20 46 52 4f 4d M.pid.. FROM
1920: 20 20 20 72 65 76 69 73 69 6f 6e 20 52 2c 20 6d revision R, m
1930: 65 74 61 20 4d 20 20 20 2d 2d 20 52 20 3d 3d 3e eta M -- R ==>
1940: 20 4d 2c 20 75 73 69 6e 67 20 50 4b 20 69 6e 64 M, using PK ind
1950: 65 78 20 6f 66 20 4d 2e 0a 09 20 20 20 20 57 48 ex of M... WH
1960: 45 52 45 20 20 52 2e 6d 69 64 20 3d 20 4d 2e 6d ERE R.mid = M.m
1970: 69 64 0a 09 20 20 20 20 4f 52 44 45 52 20 20 42 id.. ORDER B
1980: 59 20 4d 2e 6d 69 64 2c 20 52 2e 64 61 74 65 0a Y M.mid, R.date.
1990: 09 7d 5d 20 7b 0a 09 20 20 20 20 69 66 20 7b 24 .}] {.. if {$
19a0: 6c 61 73 74 6d 65 74 61 20 21 3d 20 24 6d 69 64 lastmeta != $mid
19b0: 7d 20 7b 0a 09 09 69 66 20 7b 5b 6c 6c 65 6e 67 } {...if {[lleng
19c0: 74 68 20 24 72 65 76 69 73 69 6f 6e 73 5d 7d 20 th $revisions]}
19d0: 7b 0a 09 09 20 20 20 20 69 6e 63 72 20 6e 0a 09 {... incr n..
19e0: 09 20 20 20 20 73 65 74 20 20 70 20 5b 72 65 70 . set p [rep
19f0: 6f 73 69 74 6f 72 79 20 70 72 6f 6a 65 63 74 6f ository projecto
1a00: 66 20 24 6c 61 73 74 70 72 6f 6a 65 63 74 5d 0a f $lastproject].
1a10: 09 09 20 20 20 20 70 72 6f 6a 65 63 74 3a 3a 72 .. project::r
1a20: 65 76 20 25 41 55 54 4f 25 20 24 70 20 72 65 76 ev %AUTO% $p rev
1a30: 20 24 6c 61 73 74 6d 65 74 61 20 24 72 65 76 69 $lastmeta $revi
1a40: 73 69 6f 6e 73 0a 09 09 20 20 20 20 73 65 74 20 sions... set
1a50: 72 65 76 69 73 69 6f 6e 73 20 7b 7d 0a 09 09 7d revisions {}...}
1a60: 0a 09 09 73 65 74 20 6c 61 73 74 6d 65 74 61 20 ...set lastmeta
1a70: 20 20 20 24 6d 69 64 0a 09 09 73 65 74 20 6c 61 $mid...set la
1a80: 73 74 70 72 6f 6a 65 63 74 20 24 70 69 64 0a 09 stproject $pid..
1a90: 20 20 20 20 7d 0a 09 20 20 20 20 6c 61 70 70 65 }.. lappe
1aa0: 6e 64 20 72 65 76 69 73 69 6f 6e 73 20 24 72 69 nd revisions $ri
1ab0: 64 0a 09 7d 0a 0a 09 69 66 20 7b 5b 6c 6c 65 6e d..}...if {[llen
1ac0: 67 74 68 20 24 72 65 76 69 73 69 6f 6e 73 5d 7d gth $revisions]}
1ad0: 20 7b 0a 09 20 20 20 20 69 6e 63 72 20 6e 0a 09 {.. incr n..
1ae0: 20 20 20 20 73 65 74 20 20 70 20 5b 72 65 70 6f set p [repo
1af0: 73 69 74 6f 72 79 20 70 72 6f 6a 65 63 74 6f 66 sitory projectof
1b00: 20 24 6c 61 73 74 70 72 6f 6a 65 63 74 5d 0a 09 $lastproject]..
1b10: 20 20 20 20 70 72 6f 6a 65 63 74 3a 3a 72 65 76 project::rev
1b20: 20 25 41 55 54 4f 25 20 24 70 20 72 65 76 20 24 %AUTO% $p rev $
1b30: 6c 61 73 74 6d 65 74 61 20 24 72 65 76 69 73 69 lastmeta $revisi
1b40: 6f 6e 73 0a 09 7d 0a 0a 09 6c 6f 67 20 77 72 69 ons..}...log wri
1b50: 74 65 20 34 20 69 6e 69 74 63 73 65 74 73 20 22 te 4 initcsets "
1b60: 43 72 65 61 74 65 64 20 5b 6e 73 70 20 24 6e 20 Created [nsp $n
1b70: 7b 72 65 76 69 73 69 6f 6e 20 63 68 61 6e 67 65 {revision change
1b80: 73 65 74 7d 5d 22 0a 09 72 65 74 75 72 6e 0a 20 set}]"..return.
1b90: 20 20 20 7d 0a 0a 20 20 20 20 70 72 6f 63 20 43 }.. proc C
1ba0: 72 65 61 74 65 53 79 6d 62 6f 6c 43 68 61 6e 67 reateSymbolChang
1bb0: 65 73 65 74 73 20 7b 7d 20 7b 0a 09 6c 6f 67 20 esets {} {..log
1bc0: 77 72 69 74 65 20 33 20 69 6e 69 74 63 73 65 74 write 3 initcset
1bd0: 73 20 7b 43 72 65 61 74 65 20 63 68 61 6e 67 65 s {Create change
1be0: 73 65 74 73 20 62 61 73 65 64 20 6f 6e 20 73 79 sets based on sy
1bf0: 6d 62 6f 6c 73 7d 0a 0a 09 23 20 54 61 67 73 20 mbols}...# Tags
1c00: 61 6e 64 20 62 72 61 6e 63 68 65 73 20 69 6e 64 and branches ind
1c10: 75 63 65 20 63 68 61 6e 67 65 73 65 74 73 20 61 uce changesets a
1c20: 73 20 77 65 6c 6c 2c 20 63 6f 6e 74 61 69 6e 69 s well, containi
1c30: 6e 67 20 74 68 65 0a 09 23 20 72 65 76 69 73 69 ng the..# revisi
1c40: 6f 6e 73 20 74 68 65 79 20 61 72 65 20 61 74 74 ons they are att
1c50: 61 63 68 65 64 20 74 6f 20 28 74 61 67 73 29 2c ached to (tags),
1c60: 20 6f 72 20 73 70 61 77 6e 65 64 20 66 72 6f 6d or spawned from
1c70: 0a 09 23 20 28 62 72 61 6e 63 68 65 73 29 2e 0a ..# (branches)..
1c80: 0a 09 73 65 74 20 6e 20 30 0a 0a 09 23 20 46 69 ..set n 0...# Fi
1c90: 72 73 74 20 70 72 6f 63 65 73 73 20 74 68 65 20 rst process the
1ca0: 74 61 67 73 2c 20 74 68 65 6e 20 74 68 65 20 62 tags, then the b
1cb0: 72 61 6e 63 68 65 73 2e 20 57 65 20 6b 6e 6f 77 ranches. We know
1cc0: 20 74 68 61 74 0a 09 23 20 74 68 65 69 72 20 69 that..# their i
1cd0: 64 73 20 64 6f 20 6e 6f 74 20 6f 76 65 72 6c 61 ds do not overla
1ce0: 70 20 77 69 74 68 20 65 61 63 68 20 6f 74 68 65 p with each othe
1cf0: 72 2e 0a 0a 09 73 65 74 20 6c 61 73 74 73 79 6d r....set lastsym
1d00: 62 6f 6c 20 20 7b 7d 0a 09 73 65 74 20 6c 61 73 bol {}..set las
1d10: 74 70 72 6f 6a 65 63 74 20 7b 7d 0a 09 73 65 74 tproject {}..set
1d20: 20 74 61 67 73 20 20 20 20 20 20 20 20 7b 7d 0a tags {}.
1d30: 0a 09 66 6f 72 65 61 63 68 20 7b 73 69 64 20 74 ..foreach {sid t
1d40: 69 64 20 70 69 64 7d 20 5b 73 74 61 74 65 20 72 id pid} [state r
1d50: 75 6e 20 7b 0a 09 20 20 20 20 53 45 4c 45 43 54 un {.. SELECT
1d60: 20 53 2e 73 69 64 2c 20 54 2e 74 69 64 2c 20 53 S.sid, T.tid, S
1d70: 2e 70 69 64 0a 09 20 20 20 20 46 52 4f 4d 20 20 .pid.. FROM
1d80: 74 61 67 20 54 2c 20 73 79 6d 62 6f 6c 20 53 20 tag T, symbol S
1d90: 20 20 20 20 2d 2d 20 54 20 3d 3d 3e 20 52 2f 53 -- T ==> R/S
1da0: 2c 20 75 73 69 6e 67 20 50 4b 20 69 6e 64 69 63 , using PK indic
1db0: 65 73 20 6f 66 20 52 2c 20 53 2e 0a 09 20 20 20 es of R, S...
1dc0: 20 57 48 45 52 45 20 54 2e 73 69 64 20 3d 20 53 WHERE T.sid = S
1dd0: 2e 73 69 64 0a 09 20 20 20 20 4f 52 44 45 52 20 .sid.. ORDER
1de0: 42 59 20 53 2e 73 69 64 2c 20 54 2e 74 69 64 0a BY S.sid, T.tid.
1df0: 09 7d 5d 20 7b 0a 09 20 20 20 20 69 66 20 7b 24 .}] {.. if {$
1e00: 6c 61 73 74 73 79 6d 62 6f 6c 20 21 3d 20 24 73 lastsymbol != $s
1e10: 69 64 7d 20 7b 0a 09 09 69 66 20 7b 5b 6c 6c 65 id} {...if {[lle
1e20: 6e 67 74 68 20 24 74 61 67 73 5d 7d 20 7b 0a 09 ngth $tags]} {..
1e30: 09 20 20 20 20 69 6e 63 72 20 6e 0a 09 09 20 20 . incr n...
1e40: 20 20 73 65 74 20 20 70 20 5b 72 65 70 6f 73 69 set p [reposi
1e50: 74 6f 72 79 20 70 72 6f 6a 65 63 74 6f 66 20 24 tory projectof $
1e60: 6c 61 73 74 70 72 6f 6a 65 63 74 5d 0a 09 09 20 lastproject]...
1e70: 20 20 20 70 72 6f 6a 65 63 74 3a 3a 72 65 76 20 project::rev
1e80: 25 41 55 54 4f 25 20 24 70 20 73 79 6d 3a 3a 74 %AUTO% $p sym::t
1e90: 61 67 20 24 6c 61 73 74 73 79 6d 62 6f 6c 20 24 ag $lastsymbol $
1ea0: 74 61 67 73 0a 09 09 20 20 20 20 73 65 74 20 74 tags... set t
1eb0: 61 67 73 20 7b 7d 0a 09 09 7d 0a 09 09 73 65 74 ags {}...}...set
1ec0: 20 6c 61 73 74 73 79 6d 62 6f 6c 20 20 24 73 69 lastsymbol $si
1ed0: 64 0a 09 09 73 65 74 20 6c 61 73 74 70 72 6f 6a d...set lastproj
1ee0: 65 63 74 20 24 70 69 64 0a 09 20 20 20 20 7d 0a ect $pid.. }.
1ef0: 09 20 20 20 20 6c 61 70 70 65 6e 64 20 74 61 67 . lappend tag
1f00: 73 20 24 74 69 64 0a 09 7d 0a 0a 09 69 66 20 7b s $tid..}...if {
1f10: 5b 6c 6c 65 6e 67 74 68 20 24 74 61 67 73 5d 7d [llength $tags]}
1f20: 20 7b 0a 09 20 20 20 20 69 6e 63 72 20 6e 0a 09 {.. incr n..
1f30: 20 20 20 20 73 65 74 20 20 70 20 5b 72 65 70 6f set p [repo
1f40: 73 69 74 6f 72 79 20 70 72 6f 6a 65 63 74 6f 66 sitory projectof
1f50: 20 24 6c 61 73 74 70 72 6f 6a 65 63 74 5d 0a 09 $lastproject]..
1f60: 20 20 20 20 70 72 6f 6a 65 63 74 3a 3a 72 65 76 project::rev
1f70: 20 25 41 55 54 4f 25 20 24 70 20 73 79 6d 3a 3a %AUTO% $p sym::
1f80: 74 61 67 20 24 6c 61 73 74 73 79 6d 62 6f 6c 20 tag $lastsymbol
1f90: 24 74 61 67 73 0a 09 7d 0a 0a 09 73 65 74 20 6c $tags..}...set l
1fa0: 61 73 74 73 79 6d 62 6f 6c 20 7b 7d 0a 09 73 65 astsymbol {}..se
1fb0: 74 20 6c 61 73 70 72 6f 6a 65 63 74 20 7b 7d 0a t lasproject {}.
1fc0: 09 73 65 74 20 62 72 61 6e 63 68 65 73 20 20 20 .set branches
1fd0: 7b 7d 0a 0a 09 66 6f 72 65 61 63 68 20 7b 73 69 {}...foreach {si
1fe0: 64 20 62 69 64 20 70 69 64 7d 20 5b 73 74 61 74 d bid pid} [stat
1ff0: 65 20 72 75 6e 20 7b 0a 09 20 20 20 20 53 45 4c e run {.. SEL
2000: 45 43 54 20 53 2e 73 69 64 2c 20 42 2e 62 69 64 ECT S.sid, B.bid
2010: 2c 20 53 2e 70 69 64 0a 09 20 20 20 20 46 52 4f , S.pid.. FRO
2020: 4d 20 20 62 72 61 6e 63 68 20 42 2c 20 73 79 6d M branch B, sym
2030: 62 6f 6c 20 53 20 20 2d 2d 20 42 20 3d 3d 3e 20 bol S -- B ==>
2040: 52 2f 53 2c 20 75 73 69 6e 67 20 50 4b 20 69 6e R/S, using PK in
2050: 64 69 63 65 73 20 6f 66 20 52 2c 20 53 2e 0a 09 dices of R, S...
2060: 20 20 20 20 57 48 45 52 45 20 42 2e 73 69 64 20 WHERE B.sid
2070: 20 3d 20 53 2e 73 69 64 0a 09 20 20 20 20 4f 52 = S.sid.. OR
2080: 44 45 52 20 42 59 20 53 2e 73 69 64 2c 20 42 2e DER BY S.sid, B.
2090: 62 69 64 0a 09 7d 5d 20 7b 0a 09 20 20 20 20 69 bid..}] {.. i
20a0: 66 20 7b 24 6c 61 73 74 73 79 6d 62 6f 6c 20 21 f {$lastsymbol !
20b0: 3d 20 24 73 69 64 7d 20 7b 0a 09 09 69 66 20 7b = $sid} {...if {
20c0: 5b 6c 6c 65 6e 67 74 68 20 24 62 72 61 6e 63 68 [llength $branch
20d0: 65 73 5d 7d 20 7b 0a 09 09 20 20 20 20 69 6e 63 es]} {... inc
20e0: 72 20 6e 0a 09 09 20 20 20 20 73 65 74 20 20 70 r n... set p
20f0: 20 5b 72 65 70 6f 73 69 74 6f 72 79 20 70 72 6f [repository pro
2100: 6a 65 63 74 6f 66 20 24 6c 61 73 74 70 72 6f 6a jectof $lastproj
2110: 65 63 74 5d 0a 09 09 20 20 20 20 70 72 6f 6a 65 ect]... proje
2120: 63 74 3a 3a 72 65 76 20 25 41 55 54 4f 25 20 24 ct::rev %AUTO% $
2130: 70 20 73 79 6d 3a 3a 62 72 61 6e 63 68 20 24 6c p sym::branch $l
2140: 61 73 74 73 79 6d 62 6f 6c 20 24 62 72 61 6e 63 astsymbol $branc
2150: 68 65 73 0a 09 09 20 20 20 20 73 65 74 20 62 72 hes... set br
2160: 61 6e 63 68 65 73 20 7b 7d 0a 09 09 7d 0a 09 09 anches {}...}...
2170: 73 65 74 20 6c 61 73 74 73 79 6d 62 6f 6c 20 20 set lastsymbol
2180: 24 73 69 64 0a 09 09 73 65 74 20 6c 61 73 74 70 $sid...set lastp
2190: 72 6f 6a 65 63 74 20 24 70 69 64 0a 09 20 20 20 roject $pid..
21a0: 20 7d 0a 09 20 20 20 20 6c 61 70 70 65 6e 64 20 }.. lappend
21b0: 62 72 61 6e 63 68 65 73 20 24 62 69 64 0a 09 7d branches $bid..}
21c0: 0a 0a 09 69 66 20 7b 5b 6c 6c 65 6e 67 74 68 20 ...if {[llength
21d0: 24 62 72 61 6e 63 68 65 73 5d 7d 20 7b 0a 09 20 $branches]} {..
21e0: 20 20 20 69 6e 63 72 20 6e 0a 09 20 20 20 20 73 incr n.. s
21f0: 65 74 20 20 70 20 5b 72 65 70 6f 73 69 74 6f 72 et p [repositor
2200: 79 20 70 72 6f 6a 65 63 74 6f 66 20 24 6c 61 73 y projectof $las
2210: 74 70 72 6f 6a 65 63 74 5d 0a 09 20 20 20 20 70 tproject].. p
2220: 72 6f 6a 65 63 74 3a 3a 72 65 76 20 25 41 55 54 roject::rev %AUT
2230: 4f 25 20 24 70 20 73 79 6d 3a 3a 62 72 61 6e 63 O% $p sym::branc
2240: 68 20 24 6c 61 73 74 73 79 6d 62 6f 6c 20 24 62 h $lastsymbol $b
2250: 72 61 6e 63 68 65 73 0a 09 7d 0a 0a 09 6c 6f 67 ranches..}...log
2260: 20 77 72 69 74 65 20 34 20 69 6e 69 74 63 73 65 write 4 initcse
2270: 74 73 20 22 43 72 65 61 74 65 64 20 5b 6e 73 70 ts "Created [nsp
2280: 20 24 6e 20 7b 73 79 6d 62 6f 6c 20 63 68 61 6e $n {symbol chan
2290: 67 65 73 65 74 7d 5d 22 0a 09 72 65 74 75 72 6e geset}]"..return
22a0: 0a 20 20 20 20 7d 0a 0a 20 20 20 20 70 72 6f 63 . }.. proc
22b0: 20 42 72 65 61 6b 49 6e 74 65 72 6e 61 6c 44 65 BreakInternalDe
22c0: 70 65 6e 64 65 6e 63 69 65 73 20 7b 7d 20 7b 0a pendencies {} {.
22d0: 09 23 20 54 68 69 73 20 63 6f 64 65 20 6f 70 65 .# This code ope
22e0: 72 61 74 65 73 20 6f 6e 20 74 68 65 20 72 65 76 rates on the rev
22f0: 69 73 69 6f 6e 20 63 68 61 6e 67 65 73 65 74 73 ision changesets
2300: 20 63 72 65 61 74 65 64 20 62 79 0a 09 23 20 27 created by..# '
2310: 43 72 65 61 74 65 52 65 76 69 73 69 6f 6e 43 68 CreateRevisionCh
2320: 61 6e 67 65 73 65 74 73 27 2e 20 41 73 20 73 75 angesets'. As su
2330: 63 68 20 69 74 20 68 61 73 20 74 6f 20 66 6f 6c ch it has to fol
2340: 6c 6f 77 20 61 66 74 65 72 0a 09 23 20 69 74 2c low after..# it,
2350: 20 62 65 66 6f 72 65 20 74 68 65 20 73 79 6d 62 before the symb
2360: 6f 6c 20 63 68 61 6e 67 65 73 65 74 73 20 61 72 ol changesets ar
2370: 65 20 6d 61 64 65 2e 20 54 68 65 20 63 68 61 6e e made. The chan
2380: 67 65 73 65 74 73 0a 09 23 20 61 72 65 20 69 6e gesets..# are in
2390: 73 70 65 63 74 65 64 20 66 6f 72 20 69 6e 74 65 spected for inte
23a0: 72 6e 61 6c 20 63 6f 6e 66 6c 69 63 74 73 20 61 rnal conflicts a
23b0: 6e 64 20 61 6e 79 20 73 75 63 68 20 61 72 65 20 nd any such are
23c0: 62 72 6f 6b 65 6e 0a 09 23 20 62 79 20 73 70 6c broken..# by spl
23d0: 69 74 74 69 6e 67 20 74 68 65 20 70 72 6f 62 6c itting the probl
23e0: 65 6d 61 74 69 63 20 63 68 61 6e 67 65 73 65 74 ematic changeset
23f0: 20 69 6e 74 6f 20 6d 75 6c 74 69 70 6c 65 0a 09 into multiple..
2400: 23 20 66 72 61 67 6d 65 6e 74 73 2e 20 54 68 65 # fragments. The
2410: 20 72 65 73 75 6c 74 73 20 61 72 65 20 63 68 61 results are cha
2420: 6e 67 65 73 65 74 73 20 77 68 69 63 68 20 68 61 ngesets which ha
2430: 76 65 20 6e 6f 20 69 6e 74 65 72 6e 61 6c 0a 09 ve no internal..
2440: 23 20 64 65 70 65 6e 64 65 6e 63 69 65 73 2c 20 # dependencies,
2450: 6f 6e 6c 79 20 65 78 74 65 72 6e 61 6c 20 6f 6e only external on
2460: 65 73 2e 0a 0a 09 6c 6f 67 20 77 72 69 74 65 20 es....log write
2470: 33 20 69 6e 69 74 63 73 65 74 73 20 7b 42 72 65 3 initcsets {Bre
2480: 61 6b 20 69 6e 74 65 72 6e 61 6c 20 64 65 70 65 ak internal depe
2490: 6e 64 65 6e 63 69 65 73 7d 0a 09 73 65 74 20 6f ndencies}..set o
24a0: 6c 64 20 5b 6c 6c 65 6e 67 74 68 20 5b 70 72 6f ld [llength [pro
24b0: 6a 65 63 74 3a 3a 72 65 76 20 61 6c 6c 5d 5d 0a ject::rev all]].
24c0: 0a 09 66 6f 72 65 61 63 68 20 63 73 65 74 20 5b ..foreach cset [
24d0: 70 72 6f 6a 65 63 74 3a 3a 72 65 76 20 61 6c 6c project::rev all
24e0: 5d 20 7b 0a 09 20 20 20 20 24 63 73 65 74 20 62 ] {.. $cset b
24f0: 72 65 61 6b 69 6e 74 65 72 6e 61 6c 64 65 70 65 reakinternaldepe
2500: 6e 64 65 6e 63 69 65 73 0a 09 7d 0a 0a 09 73 65 ndencies..}...se
2510: 74 20 6e 20 5b 65 78 70 72 20 7b 5b 6c 6c 65 6e t n [expr {[llen
2520: 67 74 68 20 5b 70 72 6f 6a 65 63 74 3a 3a 72 65 gth [project::re
2530: 76 20 61 6c 6c 5d 5d 20 2d 20 24 6f 6c 64 7d 5d v all]] - $old}]
2540: 0a 09 6c 6f 67 20 77 72 69 74 65 20 34 20 69 6e ..log write 4 in
2550: 69 74 63 73 65 74 73 20 22 43 72 65 61 74 65 64 itcsets "Created
2560: 20 5b 6e 73 70 20 24 6e 20 7b 61 64 64 69 74 69 [nsp $n {additi
2570: 6f 6e 61 6c 20 72 65 76 69 73 69 6f 6e 20 63 68 onal revision ch
2580: 61 6e 67 65 73 65 74 7d 5d 22 0a 09 6c 6f 67 20 angeset}]"..log
2590: 77 72 69 74 65 20 34 20 69 6e 69 74 63 73 65 74 write 4 initcset
25a0: 73 20 4f 6b 2e 0a 09 72 65 74 75 72 6e 0a 20 20 s Ok...return.
25b0: 20 20 7d 0a 0a 20 20 20 20 70 72 6f 63 20 50 65 }.. proc Pe
25c0: 72 73 69 73 74 54 68 65 43 68 61 6e 67 65 73 65 rsistTheChangese
25d0: 74 73 20 7b 7d 20 7b 0a 09 6c 6f 67 20 77 72 69 ts {} {..log wri
25e0: 74 65 20 33 20 69 6e 69 74 63 73 65 74 73 20 22 te 3 initcsets "
25f0: 53 61 76 69 6e 67 20 5b 6e 73 70 20 5b 6c 6c 65 Saving [nsp [lle
2600: 6e 67 74 68 20 5b 70 72 6f 6a 65 63 74 3a 3a 72 ngth [project::r
2610: 65 76 20 61 6c 6c 5d 5d 20 7b 69 6e 69 74 69 61 ev all]] {initia
2620: 6c 20 63 68 61 6e 67 65 73 65 74 7d 5d 20 74 6f l changeset}] to
2630: 20 74 68 65 20 70 65 72 73 69 73 74 65 6e 74 20 the persistent
2640: 73 74 61 74 65 22 0a 0a 09 66 6f 72 65 61 63 68 state"...foreach
2650: 20 63 73 65 74 20 5b 70 72 6f 6a 65 63 74 3a 3a cset [project::
2660: 72 65 76 20 61 6c 6c 5d 20 7b 0a 09 20 20 20 20 rev all] {..
2670: 24 63 73 65 74 20 70 65 72 73 69 73 74 0a 09 7d $cset persist..}
2680: 0a 0a 09 6c 6f 67 20 77 72 69 74 65 20 34 20 69 ...log write 4 i
2690: 6e 69 74 63 73 65 74 73 20 4f 6b 2e 0a 09 72 65 nitcsets Ok...re
26a0: 74 75 72 6e 0a 20 20 20 20 7d 0a 0a 20 20 20 20 turn. }..
26b0: 23 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 # # ## ### #####
26c0: 20 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 ######## ######
26d0: 23 23 23 23 23 23 23 0a 20 20 20 20 23 23 20 43 #######. ## C
26e0: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 0a 0a 20 20 onfiguration..
26f0: 20 20 70 72 61 67 6d 61 20 2d 68 61 73 69 6e 73 pragma -hasins
2700: 74 61 6e 63 65 73 20 20 20 6e 6f 20 3b 20 23 20 tances no ; #
2710: 73 69 6e 67 6c 65 74 6f 6e 0a 20 20 20 20 70 72 singleton. pr
2720: 61 67 6d 61 20 2d 68 61 73 74 79 70 65 69 6e 66 agma -hastypeinf
2730: 6f 20 20 20 20 6e 6f 20 3b 20 23 20 6e 6f 20 69 o no ; # no i
2740: 6e 74 72 6f 73 70 65 63 74 69 6f 6e 0a 20 20 20 ntrospection.
2750: 20 70 72 61 67 6d 61 20 2d 68 61 73 74 79 70 65 pragma -hastype
2760: 64 65 73 74 72 6f 79 20 6e 6f 20 3b 20 23 20 69 destroy no ; # i
2770: 6d 6d 6f 72 74 61 6c 0a 0a 20 20 20 20 23 20 23 mmortal.. # #
2780: 20 23 23 20 23 23 23 20 23 23 23 23 23 20 23 23 ## ### ##### ##
2790: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23 ###### #########
27a0: 23 23 23 23 0a 7d 0a 0a 6e 61 6d 65 73 70 61 63 ####.}..namespac
27b0: 65 20 65 76 61 6c 20 3a 3a 76 63 3a 3a 66 6f 73 e eval ::vc::fos
27c0: 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 sil::import::cvs
27d0: 3a 3a 70 61 73 73 20 7b 0a 20 20 20 20 6e 61 6d ::pass {. nam
27e0: 65 73 70 61 63 65 20 65 78 70 6f 72 74 20 69 6e espace export in
27f0: 69 74 63 73 65 74 73 0a 20 20 20 20 6e 61 6d 65 itcsets. name
2800: 73 70 61 63 65 20 65 76 61 6c 20 69 6e 69 74 63 space eval initc
2810: 73 65 74 73 20 7b 0a 09 6e 61 6d 65 73 70 61 63 sets {..namespac
2820: 65 20 69 6d 70 6f 72 74 20 3a 3a 76 63 3a 3a 66 e import ::vc::f
2830: 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 ossil::import::c
2840: 76 73 3a 3a 72 65 70 6f 73 69 74 6f 72 79 0a 09 vs::repository..
2850: 6e 61 6d 65 73 70 61 63 65 20 69 6d 70 6f 72 74 namespace import
2860: 20 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 ::vc::fossil::i
2870: 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 73 74 61 74 mport::cvs::stat
2880: 65 0a 09 6e 61 6d 65 73 70 61 63 65 20 69 6d 70 e..namespace imp
2890: 6f 72 74 20 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c ort ::vc::fossil
28a0: 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 69 ::import::cvs::i
28b0: 6e 74 65 67 72 69 74 79 0a 09 6e 61 6d 65 73 70 ntegrity..namesp
28c0: 61 63 65 20 65 76 61 6c 20 70 72 6f 6a 65 63 74 ace eval project
28d0: 20 7b 0a 09 20 20 20 20 6e 61 6d 65 73 70 61 63 {.. namespac
28e0: 65 20 69 6d 70 6f 72 74 20 3a 3a 76 63 3a 3a 66 e import ::vc::f
28f0: 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 ossil::import::c
2900: 76 73 3a 3a 70 72 6f 6a 65 63 74 3a 3a 72 65 76 vs::project::rev
2910: 0a 09 7d 0a 09 6e 61 6d 65 73 70 61 63 65 20 69 ..}..namespace i
2920: 6d 70 6f 72 74 20 3a 3a 76 63 3a 3a 74 6f 6f 6c mport ::vc::tool
2930: 73 3a 3a 6d 69 73 63 3a 3a 2a 0a 09 6e 61 6d 65 s::misc::*..name
2940: 73 70 61 63 65 20 69 6d 70 6f 72 74 20 3a 3a 76 space import ::v
2950: 63 3a 3a 74 6f 6f 6c 73 3a 3a 6c 6f 67 0a 09 6c c::tools::log..l
2960: 6f 67 20 72 65 67 69 73 74 65 72 20 69 6e 69 74 og register init
2970: 63 73 65 74 73 0a 20 20 20 20 7d 0a 7d 0a 0a 23 csets. }.}..#
2980: 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20 # ## ### #####
2990: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23 ######## #######
29a0: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23 ###### #########
29b0: 23 23 23 23 23 23 23 23 23 23 23 23 0a 23 23 20 ############.##
29c0: 52 65 61 64 79 0a 0a 70 61 63 6b 61 67 65 20 70 Ready..package p
29d0: 72 6f 76 69 64 65 20 76 63 3a 3a 66 6f 73 73 69 rovide vc::fossi
29e0: 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a l::import::cvs::
29f0: 70 61 73 73 3a 3a 69 6e 69 74 63 73 65 74 73 20 pass::initcsets
2a00: 31 2e 30 0a 72 65 74 75 72 6e 0a 1.0.return.