Hex Artifact Content
Not logged in

Artifact 20494b63abc85125fc5ac70c206487528381ef65:

File tools/cvs2fossil/lib/c2f_pbreakacycle.tcl part of check-in [1f60018119] - Fixed typo in cycle breaker logging. Extended pass 8, wrote the outline with all the relevant custom callbacks. by aku on 2007-11-21 04:44:13.

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 49 49 49 2e 20 54 68 69 73 20 69 73 20  s VIII. This is 
0210: 74 68 65 20 66 69 6e 61 6c 20 70 61 73 73 20 66  the final pass f
0220: 6f 72 20 62 72 65 61 6b 69 6e 67 20 63 68 61 6e  or breaking chan
0230: 67 65 73 65 74 20 64 65 70 65 6e 64 65 6e 63 79  geset dependency
0240: 0a 23 23 20 63 79 63 6c 65 73 2e 20 54 68 65 20  .## cycles. The 
0250: 74 77 6f 20 70 72 65 76 69 6f 75 73 20 70 61 73  two previous pas
0260: 73 65 73 20 62 72 6f 6b 65 20 63 79 63 6c 65 73  ses broke cycles
0270: 20 63 6f 76 65 72 69 6e 67 20 72 65 76 69 73 69   covering revisi
0280: 6f 6e 20 61 6e 64 0a 23 23 20 73 79 6d 62 6f 6c  on and.## symbol
0290: 20 63 68 61 6e 67 65 73 65 74 73 2c 20 72 65 73   changesets, res
02a0: 70 65 63 74 69 76 65 6c 79 2e 20 54 68 69 73 20  pectively. This 
02b0: 70 61 73 73 20 6e 6f 77 20 62 72 65 61 6b 73 20  pass now breaks 
02c0: 61 6e 79 20 72 65 6d 61 69 6e 69 6e 67 0a 23 23  any remaining.##
02d0: 20 63 79 63 6c 65 73 20 65 61 63 68 20 6f 66 20   cycles each of 
02e0: 77 68 69 63 68 20 68 61 73 20 74 6f 20 63 6f 6e  which has to con
02f0: 74 61 69 6e 20 61 74 20 6c 65 61 73 74 20 6f 6e  tain at least on
0300: 65 20 72 65 76 69 73 69 6f 6e 20 61 6e 64 20 61  e revision and a
0310: 74 0a 23 23 20 6c 65 61 73 74 20 6f 6e 65 20 73  t.## least one s
0320: 79 6d 62 6f 6c 20 63 68 61 6e 67 65 73 65 74 2e  ymbol changeset.
0330: 0a 0a 23 20 23 20 23 23 20 23 23 23 20 23 23 23  ..# # ## ### ###
0340: 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23  ## ######## ####
0350: 23 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23  ######### ######
0360: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 0a  ###############.
0370: 23 23 20 52 65 71 75 69 72 65 6d 65 6e 74 73 0a  ## Requirements.
0380: 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65  .package require
0390: 20 54 63 6c 20 38 2e 34 20 20 20 20 20 20 20 20   Tcl 8.4        
03a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
03b0: 20 20 20 20 20 20 20 20 20 20 20 3b 20 23 20 52             ; # R
03c0: 65 71 75 69 72 65 64 20 72 75 6e 74 69 6d 65 2e  equired runtime.
03d0: 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 72 65  .package require
03e0: 20 73 6e 69 74 20 20 20 20 20 20 20 20 20 20 20   snit           
03f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0400: 20 20 20 20 20 20 20 20 20 20 20 3b 20 23 20 4f             ; # O
0410: 4f 20 73 79 73 74 65 6d 2e 0a 70 61 63 6b 61 67  O system..packag
0420: 65 20 72 65 71 75 69 72 65 20 73 74 72 75 63 74  e require struct
0430: 3a 3a 6c 69 73 74 20 20 20 20 20 20 20 20 20 20  ::list          
0440: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0450: 20 20 20 20 3b 20 23 20 48 69 67 68 65 72 20 6f      ; # Higher o
0460: 72 64 65 72 20 6c 69 73 74 20 6f 70 65 72 61 74  rder list operat
0470: 69 6f 6e 73 2e 0a 70 61 63 6b 61 67 65 20 72 65  ions..package re
0480: 71 75 69 72 65 20 76 63 3a 3a 74 6f 6f 6c 73 3a  quire vc::tools:
0490: 3a 6c 6f 67 20 20 20 20 20 20 20 20 20 20 20 20  :log            
04a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
04b0: 3b 20 23 20 55 73 65 72 20 66 65 65 64 62 61 63  ; # User feedbac
04c0: 6b 2e 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69  k..package requi
04d0: 72 65 20 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69  re vc::fossil::i
04e0: 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 72 65 70 6f  mport::cvs::repo
04f0: 73 69 74 6f 72 79 20 20 20 20 20 20 20 3b 20 23  sitory       ; #
0500: 20 52 65 70 6f 73 69 74 6f 72 79 20 6d 61 6e 61   Repository mana
0510: 67 65 6d 65 6e 74 2e 0a 70 61 63 6b 61 67 65 20  gement..package 
0520: 72 65 71 75 69 72 65 20 76 63 3a 3a 66 6f 73 73  require vc::foss
0530: 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a  il::import::cvs:
0540: 3a 63 79 63 6c 65 62 72 65 61 6b 65 72 20 20 20  :cyclebreaker   
0550: 20 20 3b 20 23 20 42 72 65 61 6b 69 6e 67 20 64    ; # Breaking d
0560: 65 70 65 6e 64 65 6e 63 79 20 63 79 63 6c 65 73  ependency cycles
0570: 2e 0a 70 61 63 6b 61 67 65 20 72 65 71 75 69 72  ..package requir
0580: 65 20 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d  e vc::fossil::im
0590: 70 6f 72 74 3a 3a 63 76 73 3a 3a 73 74 61 74 65  port::cvs::state
05a0: 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 23 20              ; # 
05b0: 53 74 61 74 65 20 73 74 6f 72 61 67 65 2e 0a 70  State storage..p
05c0: 61 63 6b 61 67 65 20 72 65 71 75 69 72 65 20 76  ackage require 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 72 6f 6a 65 63 74 3a  t::cvs::project:
05f0: 3a 72 65 76 20 20 20 20 20 3b 20 23 20 50 72 6f  :rev     ; # Pro
0600: 6a 65 63 74 20 6c 65 76 65 6c 20 63 68 61 6e 67  ject level chang
0610: 65 73 65 74 73 0a 0a 23 20 23 20 23 23 20 23 23  esets..# # ## ##
0620: 23 20 23 23 23 23 23 20 23 23 23 23 23 23 23 23  # ##### ########
0630: 20 23 23 23 23 23 23 23 23 23 23 23 23 23 20 23   ############# #
0640: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0650: 23 23 23 23 0a 23 23 20 52 65 67 69 73 74 65 72  ####.## Register
0660: 20 74 68 65 20 70 61 73 73 20 77 69 74 68 20 74   the pass with t
0670: 68 65 20 6d 61 6e 61 67 65 6d 65 6e 74 0a 0a 76  he management..v
0680: 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72  c::fossil::impor
0690: 74 3a 3a 63 76 73 3a 3a 70 61 73 73 20 64 65 66  t::cvs::pass def
06a0: 69 6e 65 20 5c 0a 20 20 20 20 42 72 65 61 6b 41  ine \.    BreakA
06b0: 6c 6c 43 73 65 74 43 79 63 6c 65 73 20 5c 0a 20  llCsetCycles \. 
06c0: 20 20 20 7b 42 72 65 61 6b 20 52 65 6d 61 69 6e     {Break Remain
06d0: 69 6e 67 20 43 68 61 6e 67 65 53 65 74 20 44 65  ing ChangeSet De
06e0: 70 65 6e 64 65 6e 63 79 20 43 79 63 6c 65 73 7d  pendency Cycles}
06f0: 20 5c 0a 20 20 20 20 3a 3a 76 63 3a 3a 66 6f 73   \.    ::vc::fos
0700: 73 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73  sil::import::cvs
0710: 3a 3a 70 61 73 73 3a 3a 62 72 65 61 6b 61 63 79  ::pass::breakacy
0720: 63 6c 65 0a 0a 23 20 23 20 23 23 20 23 23 23 20  cle..# # ## ### 
0730: 23 23 23 23 23 20 23 23 23 23 23 23 23 23 20 23  ##### ######## #
0740: 23 23 23 23 23 23 23 23 23 23 23 23 20 23 23 23  ############ ###
0750: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23  ################
0760: 23 23 0a 23 23 20 0a 0a 73 6e 69 74 3a 3a 74 79  ##.## ..snit::ty
0770: 70 65 20 3a 3a 76 63 3a 3a 66 6f 73 73 69 6c 3a  pe ::vc::fossil:
0780: 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a 3a 70 61  :import::cvs::pa
0790: 73 73 3a 3a 62 72 65 61 6b 61 63 79 63 6c 65 20  ss::breakacycle 
07a0: 7b 0a 20 20 20 20 23 20 23 20 23 23 20 23 23 23  {.    # # ## ###
07b0: 20 23 23 23 23 23 20 23 23 23 23 23 23 23 23 20   ##### ######## 
07c0: 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 20 20  #############.  
07d0: 20 20 23 23 20 50 75 62 6c 69 63 20 41 50 49 0a    ## Public API.
07e0: 0a 20 20 20 20 74 79 70 65 6d 65 74 68 6f 64 20  .    typemethod 
07f0: 73 65 74 75 70 20 7b 7d 20 7b 0a 09 23 20 44 65  setup {} {..# De
0800: 66 69 6e 65 20 74 68 65 20 6e 61 6d 65 73 20 61  fine the names a
0810: 6e 64 20 73 74 72 75 63 74 75 72 65 20 6f 66 20  nd structure of 
0820: 74 68 65 20 70 65 72 73 69 73 74 65 6e 74 20 73  the persistent s
0830: 74 61 74 65 20 6f 66 0a 09 23 20 74 68 69 73 20  tate of..# this 
0840: 70 61 73 73 2e 0a 09 72 65 74 75 72 6e 0a 20 20  pass...return.  
0850: 20 20 7d 0a 0a 20 20 20 20 74 79 70 65 6d 65 74    }..    typemet
0860: 68 6f 64 20 6c 6f 61 64 20 7b 7d 20 7b 0a 09 23  hod load {} {..#
0870: 20 50 61 73 73 20 6d 61 6e 61 67 65 72 20 69 6e   Pass manager in
0880: 74 65 72 66 61 63 65 2e 20 45 78 65 63 75 74 65  terface. Execute
0890: 64 20 74 6f 20 6c 6f 61 64 20 64 61 74 61 20 63  d to load data c
08a0: 6f 6d 70 75 74 65 64 20 62 79 0a 09 23 20 74 68  omputed by..# th
08b0: 69 73 20 70 61 73 73 20 69 6e 74 6f 20 6d 65 6d  is pass into mem
08c0: 6f 72 79 20 77 68 65 6e 20 74 68 69 73 20 70 61  ory when this pa
08d0: 73 73 20 69 73 20 73 6b 69 70 70 65 64 20 69 6e  ss is skipped in
08e0: 73 74 65 61 64 20 6f 66 0a 09 23 20 65 78 65 63  stead of..# exec
08f0: 75 74 65 64 2e 0a 09 72 65 74 75 72 6e 0a 20 20  uted...return.  
0900: 20 20 7d 0a 0a 20 20 20 20 74 79 70 65 6d 65 74    }..    typemet
0910: 68 6f 64 20 72 75 6e 20 7b 7d 20 7b 0a 09 23 20  hod run {} {..# 
0920: 50 61 73 73 20 6d 61 6e 61 67 65 72 20 69 6e 74  Pass manager int
0930: 65 72 66 61 63 65 2e 20 45 78 65 63 75 74 65 64  erface. Executed
0940: 20 74 6f 20 70 65 72 66 6f 72 6d 20 74 68 65 0a   to perform the.
0950: 09 23 20 66 75 6e 63 74 69 6f 6e 61 6c 69 74 79  .# functionality
0960: 20 6f 66 20 74 68 65 20 70 61 73 73 2e 0a 0a 09   of the pass....
0970: 63 79 63 6c 65 62 72 65 61 6b 65 72 20 70 72 65  cyclebreaker pre
0980: 63 6d 64 20 20 20 5b 6d 79 70 72 6f 63 20 42 72  cmd   [myproc Br
0990: 65 61 6b 52 65 74 72 6f 67 72 61 64 65 42 72 61  eakRetrogradeBra
09a0: 6e 63 68 65 73 5d 0a 09 63 79 63 6c 65 62 72 65  nches]..cyclebre
09b0: 61 6b 65 72 20 73 61 76 65 63 6d 64 20 20 5b 6d  aker savecmd  [m
09c0: 79 70 72 6f 63 20 53 61 76 65 4f 72 64 65 72 5d  yproc SaveOrder]
09d0: 0a 09 63 79 63 6c 65 62 72 65 61 6b 65 72 20 62  ..cyclebreaker b
09e0: 72 65 61 6b 63 6d 64 20 5b 6d 79 70 72 6f 63 20  reakcmd [myproc 
09f0: 42 72 65 61 6b 43 79 63 6c 65 5d 0a 0a 09 73 74  BreakCycle]...st
0a00: 61 74 65 20 74 72 61 6e 73 61 63 74 69 6f 6e 20  ate transaction 
0a10: 7b 0a 09 20 20 20 20 63 79 63 6c 65 62 72 65 61  {..    cyclebrea
0a20: 6b 65 72 20 72 75 6e 20 62 72 65 61 6b 2d 61 6c  ker run break-al
0a30: 6c 20 5b 6d 79 70 72 6f 63 20 43 68 61 6e 67 65  l [myproc Change
0a40: 73 65 74 73 5d 0a 09 7d 0a 0a 09 72 65 70 6f 73  sets]..}...repos
0a50: 69 74 6f 72 79 20 70 72 69 6e 74 63 73 65 74 73  itory printcsets
0a60: 74 61 74 69 73 74 69 63 73 0a 09 72 65 74 75 72  tatistics..retur
0a70: 6e 0a 20 20 20 20 7d 0a 0a 20 20 20 20 74 79 70  n.    }..    typ
0a80: 65 6d 65 74 68 6f 64 20 64 69 73 63 61 72 64 20  emethod discard 
0a90: 7b 7d 20 7b 0a 09 23 20 50 61 73 73 20 6d 61 6e  {} {..# Pass man
0aa0: 61 67 65 72 20 69 6e 74 65 72 66 61 63 65 2e 20  ager interface. 
0ab0: 45 78 65 63 75 74 65 64 20 66 6f 72 20 61 6c 6c  Executed for all
0ac0: 20 70 61 73 73 65 73 20 61 66 74 65 72 20 74 68   passes after th
0ad0: 65 0a 09 23 20 72 75 6e 20 70 61 73 73 65 73 2c  e..# run passes,
0ae0: 20 74 6f 20 72 65 6d 6f 76 65 20 61 6c 6c 20 64   to remove all d
0af0: 61 74 61 20 6f 66 20 74 68 69 73 20 70 61 73 73  ata of this pass
0b00: 20 66 72 6f 6d 20 74 68 65 20 73 74 61 74 65 2c   from the state,
0b10: 0a 09 23 20 61 73 20 62 65 69 6e 67 20 6f 75 74  ..# as being out
0b20: 20 6f 66 20 64 61 74 65 2e 0a 09 72 65 74 75 72   of date...retur
0b30: 6e 0a 20 20 20 20 7d 0a 0a 20 20 20 20 23 20 23  n.    }..    # #
0b40: 20 23 23 20 23 23 23 20 23 23 23 23 23 20 23 23   ## ### ##### ##
0b50: 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23  ###### #########
0b60: 23 23 23 23 0a 20 20 20 20 23 23 20 49 6e 74 65  ####.    ## Inte
0b70: 72 6e 61 6c 20 6d 65 74 68 6f 64 73 0a 0a 20 20  rnal methods..  
0b80: 20 20 70 72 6f 63 20 43 68 61 6e 67 65 73 65 74    proc Changeset
0b90: 73 20 7b 7d 20 7b 20 70 72 6f 6a 65 63 74 3a 3a  s {} { project::
0ba0: 72 65 76 20 61 6c 6c 20 7d 0a 0a 20 20 20 20 23  rev all }..    #
0bb0: 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20   # ## ### ##### 
0bc0: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23  ######## #######
0bd0: 23 23 23 23 23 23 0a 0a 20 20 20 20 70 72 6f 63  ######..    proc
0be0: 20 42 72 65 61 6b 52 65 74 72 6f 67 72 61 64 65   BreakRetrograde
0bf0: 42 72 61 6e 63 68 65 73 20 7b 67 72 61 70 68 7d  Branches {graph}
0c00: 20 7b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 23 20   {.    }..    # 
0c10: 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20 23  # ## ### ##### #
0c20: 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23  ####### ########
0c30: 23 23 23 23 23 0a 0a 20 20 20 20 70 72 6f 63 20  #####..    proc 
0c40: 53 61 76 65 4f 72 64 65 72 20 7b 63 73 65 74 20  SaveOrder {cset 
0c50: 70 6f 73 7d 20 7b 0a 20 20 20 20 7d 0a 0a 20 20  pos} {.    }..  
0c60: 20 20 23 20 23 20 23 23 20 23 23 23 20 23 23 23    # # ## ### ###
0c70: 23 23 20 23 23 23 23 23 23 23 23 20 23 23 23 23  ## ######## ####
0c80: 23 23 23 23 23 23 23 23 23 0a 0a 20 20 20 20 70  #########..    p
0c90: 72 6f 63 20 42 72 65 61 6b 43 79 63 6c 65 20 7b  roc BreakCycle {
0ca0: 67 72 61 70 68 7d 20 7b 0a 09 63 79 63 6c 65 62  graph} {..cycleb
0cb0: 72 65 61 6b 65 72 20 62 72 65 61 6b 20 24 67 72  reaker break $gr
0cc0: 61 70 68 0a 20 20 20 20 7d 0a 0a 20 20 20 20 23  aph.    }..    #
0cd0: 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23 20   # ## ### ##### 
0ce0: 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23  ######## #######
0cf0: 23 23 23 23 23 23 0a 20 20 20 20 23 23 20 43 6f  ######.    ## Co
0d00: 6e 66 69 67 75 72 61 74 69 6f 6e 0a 0a 20 20 20  nfiguration..   
0d10: 20 70 72 61 67 6d 61 20 2d 68 61 73 69 6e 73 74   pragma -hasinst
0d20: 61 6e 63 65 73 20 20 20 6e 6f 20 3b 20 23 20 73  ances   no ; # s
0d30: 69 6e 67 6c 65 74 6f 6e 0a 20 20 20 20 70 72 61  ingleton.    pra
0d40: 67 6d 61 20 2d 68 61 73 74 79 70 65 69 6e 66 6f  gma -hastypeinfo
0d50: 20 20 20 20 6e 6f 20 3b 20 23 20 6e 6f 20 69 6e      no ; # no in
0d60: 74 72 6f 73 70 65 63 74 69 6f 6e 0a 20 20 20 20  trospection.    
0d70: 70 72 61 67 6d 61 20 2d 68 61 73 74 79 70 65 64  pragma -hastyped
0d80: 65 73 74 72 6f 79 20 6e 6f 20 3b 20 23 20 69 6d  estroy no ; # im
0d90: 6d 6f 72 74 61 6c 0a 0a 20 20 20 20 23 20 23 20  mortal..    # # 
0da0: 23 23 20 23 23 23 20 23 23 23 23 23 20 23 23 23  ## ### ##### ###
0db0: 23 23 23 23 23 20 23 23 23 23 23 23 23 23 23 23  ##### ##########
0dc0: 23 23 23 0a 7d 0a 0a 6e 61 6d 65 73 70 61 63 65  ###.}..namespace
0dd0: 20 65 76 61 6c 20 3a 3a 76 63 3a 3a 66 6f 73 73   eval ::vc::foss
0de0: 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a  il::import::cvs:
0df0: 3a 70 61 73 73 20 7b 0a 20 20 20 20 6e 61 6d 65  :pass {.    name
0e00: 73 70 61 63 65 20 65 78 70 6f 72 74 20 62 72 65  space export bre
0e10: 61 6b 61 63 79 63 6c 65 0a 20 20 20 20 6e 61 6d  akacycle.    nam
0e20: 65 73 70 61 63 65 20 65 76 61 6c 20 62 72 65 61  espace eval brea
0e30: 6b 61 63 79 63 6c 65 20 7b 0a 09 6e 61 6d 65 73  kacycle {..names
0e40: 70 61 63 65 20 69 6d 70 6f 72 74 20 3a 3a 76 63  pace import ::vc
0e50: 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f 72 74  ::fossil::import
0e60: 3a 3a 63 76 73 3a 3a 63 79 63 6c 65 62 72 65 61  ::cvs::cyclebrea
0e70: 6b 65 72 0a 09 6e 61 6d 65 73 70 61 63 65 20 69  ker..namespace i
0e80: 6d 70 6f 72 74 20 3a 3a 76 63 3a 3a 66 6f 73 73  mport ::vc::foss
0e90: 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a  il::import::cvs:
0ea0: 3a 72 65 70 6f 73 69 74 6f 72 79 0a 09 6e 61 6d  :repository..nam
0eb0: 65 73 70 61 63 65 20 69 6d 70 6f 72 74 20 3a 3a  espace import ::
0ec0: 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70 6f  vc::fossil::impo
0ed0: 72 74 3a 3a 63 76 73 3a 3a 73 74 61 74 65 0a 09  rt::cvs::state..
0ee0: 6e 61 6d 65 73 70 61 63 65 20 65 76 61 6c 20 70  namespace eval p
0ef0: 72 6f 6a 65 63 74 20 7b 0a 09 20 20 20 20 6e 61  roject {..    na
0f00: 6d 65 73 70 61 63 65 20 69 6d 70 6f 72 74 20 3a  mespace import :
0f10: 3a 76 63 3a 3a 66 6f 73 73 69 6c 3a 3a 69 6d 70  :vc::fossil::imp
0f20: 6f 72 74 3a 3a 63 76 73 3a 3a 70 72 6f 6a 65 63  ort::cvs::projec
0f30: 74 3a 3a 72 65 76 0a 09 7d 0a 09 6e 61 6d 65 73  t::rev..}..names
0f40: 70 61 63 65 20 69 6d 70 6f 72 74 20 3a 3a 76 63  pace import ::vc
0f50: 3a 3a 74 6f 6f 6c 73 3a 3a 6c 6f 67 0a 09 6c 6f  ::tools::log..lo
0f60: 67 20 72 65 67 69 73 74 65 72 20 62 72 65 61 6b  g register break
0f70: 61 63 79 63 6c 65 0a 20 20 20 20 7d 0a 7d 0a 0a  acycle.    }.}..
0f80: 23 20 23 20 23 23 20 23 23 23 20 23 23 23 23 23  # # ## ### #####
0f90: 20 23 23 23 23 23 23 23 23 20 23 23 23 23 23 23   ######## ######
0fa0: 23 23 23 23 23 23 23 20 23 23 23 23 23 23 23 23  ####### ########
0fb0: 23 23 23 23 23 23 23 23 23 23 23 23 23 0a 23 23  #############.##
0fc0: 20 52 65 61 64 79 0a 0a 70 61 63 6b 61 67 65 20   Ready..package 
0fd0: 70 72 6f 76 69 64 65 20 76 63 3a 3a 66 6f 73 73  provide vc::foss
0fe0: 69 6c 3a 3a 69 6d 70 6f 72 74 3a 3a 63 76 73 3a  il::import::cvs:
0ff0: 3a 70 61 73 73 3a 3a 62 72 65 61 6b 61 63 79 63  :pass::breakacyc
1000: 6c 65 20 31 2e 30 0a 72 65 74 75 72 6e 0a        le 1.0.return.