Hex Artifact Content
Not logged in

Artifact 30d811a68216a228f1509f4739bd33183e6299e1:

File tools/cvs2fossil/lib/c2f_psym.tcl part of check-in [da9295c6f6] - Continued to flesh out revision and symbol processing. Started on the project level classses. by aku on 2007-10-12 07:18:27.

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 53 79 6d  ########..## Sym
0200: 62 6f 6c 73 20 28 54 61 67 73 2c 20 42 72 61 6e  bols (Tags, Bran
0210: 63 68 65 73 29 20 70 65 72 20 70 72 6f 6a 65 63  ches) per projec
0220: 74 2e 0a 0a 23 20 23 20 23 23 20 23 23 23 20 23  t...# # ## ### #
0230: 23 23 23 23 20 23 23 23 23 23 23 23 23 20 23 23  #### ######## ##
0240: 23 23 23 23 23 23 23 23 23 23 23 20 23 23 23 23  ########### ####
0250: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0260: 23 0a 23 23 20 52 65 71 75 69 72 65 6d 65 6e 74  #.## Requirement
0270: 73 0a 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69  s..package requi
0280: 72 65 20 54 63 6c 20 38 2e 34 20 20 20 20 20 20  re Tcl 8.4      
0290: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
02a0: 20 20 20 20 20 20 20 3b 20 23 20 52 65 71 75 69         ; # Requi
02b0: 72 65 64 20 72 75 6e 74 69 6d 65 2e 0a 70 61 63  red runtime..pac
02c0: 6b 61 67 65 20 72 65 71 75 69 72 65 20 73 6e 69  kage require sni
02d0: 74 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  t               
02e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
02f0: 20 3b 20 23 20 4f 4f 20 73 79 73 74 65 6d 2e 0a   ; # OO system..
0300: 0a 23 20 23 20 23 23 20 23 23 23 20 23 23 23 23  .# # ## ### ####
0310: 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23 23  # ######## #####
0320: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23  ######## #######
0330: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 23  ##############.#
0340: 23 20 0a 0a 73 6e 69 74 3a 3a 74 79 70 65 20 3a  # ..snit::type :
0350: 3a 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70  :vc::fossil::imp
0360: 6f 72 74 3a 3a 63 76 73 3a 3a 70 72 6f 6a 65 63  ort::cvs::projec
0370: 74 3a 3a 73 79 6d 20 7b 0a 20 20 20 20 23 20 23  t::sym {.    # #
0380: 20 23 23 20 23 23 23 20 23 23 23 23 23 20 23 23   ## ### ##### ##
0390: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23  ###### #########
03a0: 23 23 23 23 0a 20 20 20 20 23 23 20 50 75 62 6c  ####.    ## Publ
03b0: 69 63 20 41 50 49 0a 0a 20 20 20 20 63 6f 6e 73  ic API..    cons
03c0: 74 72 75 63 74 6f 72 20 7b 6e 61 6d 65 7d 20 7b  tructor {name} {
03d0: 0a 09 73 65 74 20 6d 79 6e 61 6d 65 20 24 6e 61  ..set myname $na
03e0: 6d 65 0a 09 72 65 74 75 72 6e 0a 20 20 20 20 7d  me..return.    }
03f0: 0a 0a 20 20 20 20 6d 65 74 68 6f 64 20 6e 61 6d  ..    method nam
0400: 65 20 7b 7d 20 7b 20 72 65 74 75 72 6e 20 24 6d  e {} { return $m
0410: 79 6e 61 6d 65 20 7d 0a 0a 20 20 20 20 23 20 23  yname }..    # #
0420: 20 23 23 20 23 23 23 20 23 23 23 23 23 20 23 23   ## ### ##### ##
0430: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23  ###### #########
0440: 23 23 23 23 0a 20 20 20 20 23 23 20 53 74 61 74  ####.    ## Stat
0450: 65 0a 0a 20 20 20 20 76 61 72 69 61 62 6c 65 20  e..    variable 
0460: 6d 79 6e 61 6d 65 20 7b 7d 0a 0a 20 20 20 20 23  myname {}..    #
0470: 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20   # ## ### ##### 
0480: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23  ######## #######
0490: 23 23 23 23 23 23 0a 20 20 20 20 23 23 20 49 6e  ######.    ## In
04a0: 74 65 72 6e 61 6c 20 6d 65 74 68 6f 64 73 0a 0a  ternal methods..
04b0: 20 20 20 20 23 20 23 20 23 23 20 23 23 23 20 23      # # ## ### #
04c0: 23 23 23 23 20 23 23 23 23 23 23 23 23 20 23 23  #### ######## ##
04d0: 23 23 23 23 23 23 23 23 23 23 23 0a 20 20 20 20  ###########.    
04e0: 23 23 20 43 6f 6e 66 69 67 75 72 61 74 69 6f 6e  ## Configuration
04f0: 0a 0a 20 20 20 20 70 72 61 67 6d 61 20 2d 68 61  ..    pragma -ha
0500: 73 74 79 70 65 69 6e 66 6f 20 20 20 20 6e 6f 20  stypeinfo    no 
0510: 20 3b 20 23 20 6e 6f 20 74 79 70 65 20 69 6e 74   ; # no type int
0520: 72 6f 73 70 65 63 74 69 6f 6e 0a 20 20 20 20 70  rospection.    p
0530: 72 61 67 6d 61 20 2d 68 61 73 69 6e 66 6f 20 20  ragma -hasinfo  
0540: 20 20 20 20 20 20 6e 6f 20 20 3b 20 23 20 6e 6f        no  ; # no
0550: 20 6f 62 6a 65 63 74 20 69 6e 74 72 6f 73 70 65   object introspe
0560: 63 74 69 6f 6e 0a 20 20 20 20 70 72 61 67 6d 61  ction.    pragma
0570: 20 2d 68 61 73 74 79 70 65 6d 65 74 68 6f 64 73   -hastypemethods
0580: 20 6e 6f 20 20 3b 20 23 20 74 79 70 65 20 69 73   no  ; # type is
0590: 20 6e 6f 74 20 72 65 6c 65 76 61 6e 74 2e 0a 20   not relevant.. 
05a0: 20 20 20 70 72 61 67 6d 61 20 2d 73 69 6d 70 6c     pragma -simpl
05b0: 65 64 69 73 70 61 74 63 68 20 79 65 73 20 3b 20  edispatch yes ; 
05c0: 23 20 73 69 6d 70 6c 65 20 66 61 73 74 20 64 69  # simple fast di
05d0: 73 70 61 74 63 68 0a 0a 20 20 20 20 23 20 23 20  spatch..    # # 
05e0: 23 23 20 23 23 23 20 23 23 23 23 23 20 23 23 23  ## ### ##### ###
05f0: 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23 23  ##### ##########
0600: 23 23 23 0a 7d 0a 0a 6e 61 6d 65 73 70 61 63 65  ###.}..namespace
0610: 20 65 76 61 6c 20 3a 3a 76 63 3a 3a 66 6f 73 73   eval ::vc::foss
0620: 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a  il::import::cvs:
0630: 3a 70 72 6f 6a 65 63 74 20 7b 0a 20 20 20 20 6e  :project {.    n
0640: 61 6d 65 73 70 61 63 65 20 65 78 70 6f 72 74 20  amespace export 
0650: 73 79 6d 0a 7d 0a 0a 23 20 23 20 23 23 20 23 23  sym.}..# # ## ##
0660: 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23 23  # ##### ########
0670: 20 23 23 23 23 23 23 23 23 23 23 23 23 23 20 23   ############# #
0680: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0690: 23 23 23 23 0a 23 23 20 52 65 61 64 79 0a 0a 70  ####.## Ready..p
06a0: 61 63 6b 61 67 65 20 70 72 6f 76 69 64 65 20 76  ackage provide v
06b0: 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72  c::fossil::impor
06c0: 74 3a 3a 63 76 73 3a 3a 70 72 6f 6a 65 63 74 3a  t::cvs::project:
06d0: 3a 73 79 6d 20 31 2e 30 0a 72 65 74 75 72 6e 0a  :sym 1.0.return.