Hex Artifact Content
Not logged in

Artifact 4dd74e0101d299f994ee3a6b98891147deaad527:

File tools/cvs2fossil/lib/c2f_ftrunk.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_ftrunk.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 54 72 75  ########..## Tru
0200: 6e 6b 2c 20 74 68 65 20 73 70 65 63 69 61 6c 20  nk, the special 
0210: 6d 61 69 6e 20 6c 69 6e 65 20 6f 66 20 64 65 76  main line of dev
0220: 65 6c 6f 70 6d 65 6e 74 20 69 6e 20 61 20 66 69  elopment in a fi
0230: 6c 65 2e 0a 0a 23 20 23 20 23 23 20 23 23 23 20  le...# # ## ### 
0240: 23 23 23 23 23 20 23 23 23 23 23 23 23 23 20 23  ##### ######## #
0250: 23 23 23 23 23 23 23 23 23 23 23 23 20 23 23 23  ############ ###
0260: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0270: 23 23 0a 23 23 20 52 65 71 75 69 72 65 6d 65 6e  ##.## Requiremen
0280: 74 73 0a 0a 70 61 63 6b 61 67 65 20 72 65 71 75  ts..package requ
0290: 69 72 65 20 54 63 6c 20 38 2e 34 20 20 20 20 20  ire 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 3b 20 23 20 52 65 71 75          ; # Requ
02c0: 69 72 65 64 20 72 75 6e 74 69 6d 65 2e 0a 70 61  ired runtime..pa
02d0: 63 6b 61 67 65 20 72 65 71 75 69 72 65 20 73 6e  ckage require sn
02e0: 69 74 20 20 20 20 20 20 20 20 20 20 20 20 20 20  it              
02f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0300: 20 20 3b 20 23 20 4f 4f 20 73 79 73 74 65 6d 2e    ; # OO system.
0310: 0a 0a 23 20 23 20 23 23 20 23 23 23 20 23 23 23  ..# # ## ### ###
0320: 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23  ## ######## ####
0330: 23 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23  ######### ######
0340: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a  ###############.
0350: 23 23 20 0a 0a 73 6e 69 74 3a 3a 74 79 70 65 20  ## ..snit::type 
0360: 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d  ::vc::fossil::im
0370: 70 6f 72 74 3a 3a 63 76 73 3a 3a 66 69 6c 65 3a  port::cvs::file:
0380: 3a 74 72 75 6e 6b 20 7b 0a 20 20 20 20 23 20 23  :trunk {.    # #
0390: 20 23 23 20 23 23 23 20 23 23 23 23 23 20 23 23   ## ### ##### ##
03a0: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23  ###### #########
03b0: 23 23 23 23 0a 20 20 20 20 23 23 20 50 75 62 6c  ####.    ## Publ
03c0: 69 63 20 41 50 49 0a 0a 20 20 20 20 63 6f 6e 73  ic API..    cons
03d0: 74 72 75 63 74 6f 72 20 7b 7d 20 7b 0a 09 72 65  tructor {} {..re
03e0: 74 75 72 6e 0a 20 20 20 20 7d 0a 0a 20 20 20 20  turn.    }..    
03f0: 23 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23  # # ## ### #####
0400: 20 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23   ######## ######
0410: 23 23 23 23 23 23 23 0a 20 20 20 20 23 23 20 53  #######.    ## S
0420: 74 61 74 65 0a 0a 20 20 20 20 23 20 23 20 23 23  tate..    # # ##
0430: 20 23 23 23 20 23 23 23 23 23 20 23 23 23 23 23   ### ##### #####
0440: 23 23 23 20 23 23 23 23 23 23 23 23 23 23 23 23  ### ############
0450: 23 0a 20 20 20 20 23 23 20 49 6e 74 65 72 6e 61  #.    ## Interna
0460: 6c 20 6d 65 74 68 6f 64 73 0a 0a 20 20 20 20 23  l methods..    #
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 43 6f  ######.    ## Co
04a0: 6e 66 69 67 75 72 61 74 69 6f 6e 0a 0a 20 20 20  nfiguration..   
04b0: 20 70 72 61 67 6d 61 20 2d 68 61 73 74 79 70 65   pragma -hastype
04c0: 69 6e 66 6f 20 20 20 20 6e 6f 20 20 3b 20 23 20  info    no  ; # 
04d0: 6e 6f 20 74 79 70 65 20 69 6e 74 72 6f 73 70 65  no type introspe
04e0: 63 74 69 6f 6e 0a 20 20 20 20 70 72 61 67 6d 61  ction.    pragma
04f0: 20 2d 68 61 73 69 6e 66 6f 20 20 20 20 20 20 20   -hasinfo       
0500: 20 6e 6f 20 20 3b 20 23 20 6e 6f 20 6f 62 6a 65   no  ; # no obje
0510: 63 74 20 69 6e 74 72 6f 73 70 65 63 74 69 6f 6e  ct introspection
0520: 0a 20 20 20 20 70 72 61 67 6d 61 20 2d 68 61 73  .    pragma -has
0530: 74 79 70 65 6d 65 74 68 6f 64 73 20 6e 6f 20 20  typemethods no  
0540: 3b 20 23 20 74 79 70 65 20 69 73 20 6e 6f 74 20  ; # type is not 
0550: 72 65 6c 65 76 61 6e 74 2e 0a 20 20 20 20 70 72  relevant..    pr
0560: 61 67 6d 61 20 2d 73 69 6d 70 6c 65 64 69 73 70  agma -simpledisp
0570: 61 74 63 68 20 79 65 73 20 3b 20 23 20 73 69 6d  atch yes ; # sim
0580: 70 6c 65 20 66 61 73 74 20 64 69 73 70 61 74 63  ple fast dispatc
0590: 68 0a 0a 20 20 20 20 23 20 23 20 23 23 20 23 23  h..    # # ## ##
05a0: 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23 23  # ##### ########
05b0: 20 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 7d   #############.}
05c0: 0a 0a 6e 61 6d 65 73 70 61 63 65 20 65 76 61 6c  ..namespace eval
05d0: 20 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69   ::vc::fossil::i
05e0: 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 66 69 6c 65  mport::cvs::file
05f0: 20 7b 0a 20 20 20 20 6e 61 6d 65 73 70 61 63 65   {.    namespace
0600: 20 65 78 70 6f 72 74 20 74 72 75 6e 6b 0a 7d 0a   export trunk.}.
0610: 0a 23 20 23 20 23 23 20 23 23 23 20 23 23 23 23  .# # ## ### ####
0620: 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23 23  # ######## #####
0630: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23  ######## #######
0640: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 23  ##############.#
0650: 23 20 52 65 61 64 79 0a 0a 70 61 63 6b 61 67 65  # Ready..package
0660: 20 70 72 6f 76 69 64 65 20 76 63 3a 3a 66 6f 73   provide vc::fos
0670: 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73  sil::import::cvs
0680: 3a 3a 66 69 6c 65 3a 3a 74 72 75 6e 6b 20 31 2e  ::file::trunk 1.
0690: 30 0a 72 65 74 75 72 6e 0a                       0.return.