Hex Artifact Content
Not logged in

Artifact 755aedadae93d8c32043b10820c5b98c1c3815c7:

File tools/cvs2fossil/lib/c2f_flodmgr.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. Also file tools/cvs2fossil/lib/c2f_flodmgr.tcl part of check-in [38b967dcf5] - Merge aku's CVS import changes into the main line. Fix a small bug in diff.c. by drh on 2007-11-17 00:29:42.

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 4c 69 6e  ########..## Lin
0200: 65 73 20 6f 66 20 44 65 76 65 6c 6f 70 6d 65 6e  es of Developmen
0210: 74 20 69 6e 20 61 20 66 69 6c 65 20 28 53 79 6d  t in a file (Sym
0220: 62 6f 6c 73 2c 20 61 6e 64 20 74 68 65 20 74 72  bols, and the tr
0230: 75 6e 6b 29 2e 0a 0a 23 20 23 20 23 23 20 23 23  unk)...# # ## ##
0240: 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23 23  # ##### ########
0250: 20 23 23 23 23 23 23 23 23 23 23 23 23 23 20 23   ############# #
0260: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0270: 23 23 23 23 0a 23 23 20 52 65 71 75 69 72 65 6d  ####.## Requirem
0280: 65 6e 74 73 0a 0a 70 61 63 6b 61 67 65 20 72 65  ents..package re
0290: 71 75 69 72 65 20 54 63 6c 20 38 2e 34 20 20 20  quire Tcl 8.4   
02a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
02b0: 20 20 20 20 20 20 20 20 20 20 3b 20 23 20 52 65            ; # Re
02c0: 71 75 69 72 65 64 20 72 75 6e 74 69 6d 65 2e 0a  quired runtime..
02d0: 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 20  package require 
02e0: 73 6e 69 74 20 20 20 20 20 20 20 20 20 20 20 20  snit            
02f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0300: 20 20 20 20 3b 20 23 20 4f 4f 20 73 79 73 74 65      ; # OO syste
0310: 6d 2e 0a 0a 23 20 23 20 23 23 20 23 23 23 20 23  m...# # ## ### #
0320: 23 23 23 23 20 23 23 23 23 23 23 23 23 20 23 23  #### ######## ##
0330: 23 23 23 23 23 23 23 23 23 23 23 20 23 23 23 23  ########### ####
0340: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0350: 23 0a 23 23 20 0a 0a 73 6e 69 74 3a 3a 74 79 70  #.## ..snit::typ
0360: 65 20 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a  e ::vc::fossil::
0370: 69 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 66 69 6c  import::cvs::fil
0380: 65 3a 3a 6c 6f 64 6d 67 72 20 7b 0a 20 20 20 20  e::lodmgr {.    
0390: 23 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23  # # ## ### #####
03a0: 20 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23   ######## ######
03b0: 23 23 23 23 23 23 23 0a 20 20 20 20 23 23 20 50  #######.    ## P
03c0: 75 62 6c 69 63 20 41 50 49 0a 0a 20 20 20 20 63  ublic API..    c
03d0: 6f 6e 73 74 72 75 63 74 6f 72 20 7b 7d 20 7b 0a  onstructor {} {.
03e0: 09 72 65 74 75 72 6e 0a 20 20 20 20 7d 0a 0a 20  .return.    }.. 
03f0: 20 20 20 23 20 23 20 23 23 20 23 23 23 20 23 23     # # ## ### ##
0400: 23 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23  ### ######## ###
0410: 23 23 23 23 23 23 23 23 23 23 0a 20 20 20 20 23  ##########.    #
0420: 23 20 53 74 61 74 65 0a 0a 20 20 20 20 23 20 23  # State..    # #
0430: 20 23 23 20 23 23 23 20 23 23 23 23 23 20 23 23   ## ### ##### ##
0440: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23  ###### #########
0450: 23 23 23 23 0a 20 20 20 20 23 23 20 49 6e 74 65  ####.    ## Inte
0460: 72 6e 61 6c 20 6d 65 74 68 6f 64 73 0a 0a 20 20  rnal methods..  
0470: 20 20 23 20 23 20 23 23 20 23 23 23 20 23 23 23    # # ## ### ###
0480: 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23  ## ######## ####
0490: 23 23 23 23 23 23 23 23 23 0a 20 20 20 20 23 23  #########.    ##
04a0: 20 43 6f 6e 66 69 67 75 72 61 74 69 6f 6e 0a 0a   Configuration..
04b0: 20 20 20 20 70 72 61 67 6d 61 20 2d 68 61 73 74      pragma -hast
04c0: 79 70 65 69 6e 66 6f 20 20 20 20 6e 6f 20 20 3b  ypeinfo    no  ;
04d0: 20 23 20 6e 6f 20 74 79 70 65 20 69 6e 74 72 6f   # no type intro
04e0: 73 70 65 63 74 69 6f 6e 0a 20 20 20 20 70 72 61  spection.    pra
04f0: 67 6d 61 20 2d 68 61 73 69 6e 66 6f 20 20 20 20  gma -hasinfo    
0500: 20 20 20 20 6e 6f 20 20 3b 20 23 20 6e 6f 20 6f      no  ; # no o
0510: 62 6a 65 63 74 20 69 6e 74 72 6f 73 70 65 63 74  bject introspect
0520: 69 6f 6e 0a 20 20 20 20 70 72 61 67 6d 61 20 2d  ion.    pragma -
0530: 68 61 73 74 79 70 65 6d 65 74 68 6f 64 73 20 6e  hastypemethods n
0540: 6f 20 20 3b 20 23 20 74 79 70 65 20 69 73 20 6e  o  ; # type is n
0550: 6f 74 20 72 65 6c 65 76 61 6e 74 2e 0a 20 20 20  ot relevant..   
0560: 20 70 72 61 67 6d 61 20 2d 73 69 6d 70 6c 65 64   pragma -simpled
0570: 69 73 70 61 74 63 68 20 79 65 73 20 3b 20 23 20  ispatch yes ; # 
0580: 73 69 6d 70 6c 65 20 66 61 73 74 20 64 69 73 70  simple fast disp
0590: 61 74 63 68 0a 0a 20 20 20 20 23 20 23 20 23 23  atch..    # # ##
05a0: 20 23 23 23 20 23 23 23 23 23 20 23 23 23 23 23   ### ##### #####
05b0: 23 23 23 20 23 23 23 23 23 23 23 23 23 23 23 23  ### ############
05c0: 23 0a 7d 0a 0a 6e 61 6d 65 73 70 61 63 65 20 65  #.}..namespace e
05d0: 76 61 6c 20 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c  val ::vc::fossil
05e0: 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 66  ::import::cvs::f
05f0: 69 6c 65 20 7b 0a 20 20 20 20 6e 61 6d 65 73 70  ile {.    namesp
0600: 61 63 65 20 65 78 70 6f 72 74 20 6c 6f 64 6d 67  ace export lodmg
0610: 72 0a 7d 0a 0a 23 20 23 20 23 23 20 23 23 23 20  r.}..# # ## ### 
0620: 23 23 23 23 23 20 23 23 23 23 23 23 23 23 20 23  ##### ######## #
0630: 23 23 23 23 23 23 23 23 23 23 23 23 20 23 23 23  ############ ###
0640: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0650: 23 23 0a 23 23 20 52 65 61 64 79 0a 0a 70 61 63  ##.## Ready..pac
0660: 6b 61 67 65 20 70 72 6f 76 69 64 65 20 76 63 3a  kage provide vc:
0670: 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a  :fossil::import:
0680: 3a 63 76 73 3a 3a 66 69 6c 65 3a 3a 6c 6f 64 6d  :cvs::file::lodm
0690: 67 72 20 31 2e 30 0a 72 65 74 75 72 6e 0a        gr 1.0.return.