Artifact a6284f75015e25c4d68cce3dd4d738aa85cff0cc:
File
tools/cvs2fossil/lib/c2f_frev.tcl
part of check-in
[84de38d73f]
- Added a lot of skeleton files for the revision and symbol data structures, for both project and file level.
by
aku on
2007-10-10 03:28:22.
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 52 65 76 ########..## Rev
0200: 69 73 69 6f 6e 73 20 70 65 72 20 66 69 6c 65 2e isions per file.
0210: 0a 0a 23 20 23 20 23 23 20 23 23 23 20 23 23 23 ..# # ## ### ###
0220: 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23 ## ######## ####
0230: 23 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 ######### ######
0240: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a ###############.
0250: 23 23 20 52 65 71 75 69 72 65 6d 65 6e 74 73 0a ## Requirements.
0260: 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 .package require
0270: 20 54 63 6c 20 38 2e 34 20 20 20 20 20 20 20 20 Tcl 8.4
0280: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0290: 20 20 20 20 20 3b 20 23 20 52 65 71 75 69 72 65 ; # Require
02a0: 64 20 72 75 6e 74 69 6d 65 2e 0a 70 61 63 6b 61 d runtime..packa
02b0: 67 65 20 72 65 71 75 69 72 65 20 73 6e 69 74 20 ge require snit
02c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
02d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b ;
02e0: 20 23 20 4f 4f 20 73 79 73 74 65 6d 2e 0a 0a 23 # OO system...#
02f0: 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20 # ## ### #####
0300: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23 ######## #######
0310: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23 ###### #########
0320: 23 23 23 23 23 23 23 23 23 23 23 23 0a 23 23 20 ############.##
0330: 0a 0a 73 6e 69 74 3a 3a 74 79 70 65 20 3a 3a 76 ..snit::type ::v
0340: 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 c::fossil::impor
0350: 74 3a 3a 63 76 73 3a 3a 66 69 6c 65 3a 3a 72 65 t::cvs::file::re
0360: 76 20 7b 0a 20 20 20 20 23 20 23 20 23 23 20 23 v {. # # ## #
0370: 23 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23 ## ##### #######
0380: 23 20 23 23 23 23 23 23 23 23 23 23 23 23 23 0a # #############.
0390: 20 20 20 20 23 23 20 50 75 62 6c 69 63 20 41 50 ## Public AP
03a0: 49 0a 0a 20 20 20 20 63 6f 6e 73 74 72 75 63 74 I.. construct
03b0: 6f 72 20 7b 7d 20 7b 0a 09 72 65 74 75 72 6e 0a or {} {..return.
03c0: 20 20 20 20 7d 0a 0a 20 20 20 20 23 20 23 20 23 }.. # # #
03d0: 23 20 23 23 23 20 23 23 23 23 23 20 23 23 23 23 # ### ##### ####
03e0: 23 23 23 23 20 23 23 23 23 23 23 23 23 23 23 23 #### ###########
03f0: 23 23 0a 20 20 20 20 23 23 20 53 74 61 74 65 0a ##. ## State.
0400: 0a 20 20 20 20 23 20 23 20 23 23 20 23 23 23 20 . # # ## ###
0410: 23 23 23 23 23 20 23 23 23 23 23 23 23 23 20 23 ##### ######## #
0420: 23 23 23 23 23 23 23 23 23 23 23 23 0a 20 20 20 ############.
0430: 20 23 23 20 49 6e 74 65 72 6e 61 6c 20 6d 65 74 ## Internal met
0440: 68 6f 64 73 0a 0a 20 20 20 20 23 20 23 20 23 23 hods.. # # ##
0450: 20 23 23 23 20 23 23 23 23 23 20 23 23 23 23 23 ### ##### #####
0460: 23 23 23 20 23 23 23 23 23 23 23 23 23 23 23 23 ### ############
0470: 23 0a 20 20 20 20 23 23 20 43 6f 6e 66 69 67 75 #. ## Configu
0480: 72 61 74 69 6f 6e 0a 0a 20 20 20 20 70 72 61 67 ration.. prag
0490: 6d 61 20 2d 68 61 73 74 79 70 65 69 6e 66 6f 20 ma -hastypeinfo
04a0: 20 20 20 6e 6f 20 20 3b 20 23 20 6e 6f 20 74 79 no ; # no ty
04b0: 70 65 20 69 6e 74 72 6f 73 70 65 63 74 69 6f 6e pe introspection
04c0: 0a 20 20 20 20 70 72 61 67 6d 61 20 2d 68 61 73 . pragma -has
04d0: 69 6e 66 6f 20 20 20 20 20 20 20 20 6e 6f 20 20 info no
04e0: 3b 20 23 20 6e 6f 20 6f 62 6a 65 63 74 20 69 6e ; # no object in
04f0: 74 72 6f 73 70 65 63 74 69 6f 6e 0a 20 20 20 20 trospection.
0500: 70 72 61 67 6d 61 20 2d 68 61 73 74 79 70 65 6d pragma -hastypem
0510: 65 74 68 6f 64 73 20 6e 6f 20 20 3b 20 23 20 74 ethods no ; # t
0520: 79 70 65 20 69 73 20 6e 6f 74 20 72 65 6c 65 76 ype is not relev
0530: 61 6e 74 2e 0a 20 20 20 20 70 72 61 67 6d 61 20 ant.. pragma
0540: 2d 73 69 6d 70 6c 65 64 69 73 70 61 74 63 68 20 -simpledispatch
0550: 79 65 73 20 3b 20 23 20 73 69 6d 70 6c 65 20 66 yes ; # simple f
0560: 61 73 74 20 64 69 73 70 61 74 63 68 0a 0a 20 20 ast dispatch..
0570: 20 20 23 20 23 20 23 23 20 23 23 23 20 23 23 23 # # ## ### ###
0580: 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23 ## ######## ####
0590: 23 23 23 23 23 23 23 23 23 0a 7d 0a 0a 6e 61 6d #########.}..nam
05a0: 65 73 70 61 63 65 20 65 76 61 6c 20 3a 3a 76 63 espace eval ::vc
05b0: 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 74 ::fossil::import
05c0: 3a 3a 63 76 73 3a 3a 66 69 6c 65 20 7b 0a 20 20 ::cvs::file {.
05d0: 20 20 6e 61 6d 65 73 70 61 63 65 20 65 78 70 6f namespace expo
05e0: 72 74 20 72 65 76 0a 7d 0a 0a 23 20 23 20 23 23 rt rev.}..# # ##
05f0: 20 23 23 23 20 23 23 23 23 23 20 23 23 23 23 23 ### ##### #####
0600: 23 23 23 20 23 23 23 23 23 23 23 23 23 23 23 23 ### ############
0610: 23 20 23 23 23 23 23 23 23 23 23 23 23 23 23 23 # ##############
0620: 23 23 23 23 23 23 23 0a 23 23 20 52 65 61 64 79 #######.## Ready
0630: 0a 0a 70 61 63 6b 61 67 65 20 70 72 6f 76 69 64 ..package provid
0640: 65 20 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d e vc::fossil::im
0650: 70 6f 72 74 3a 3a 63 76 73 3a 3a 66 69 6c 65 3a port::cvs::file:
0660: 3a 72 65 76 20 31 2e 30 0a 72 65 74 75 72 6e 0a :rev 1.0.return.