Tcl Source Code

Hex Artifact Content
Login

Artifact 2637cd198882b5ca0acd8dd8506660218003cce8:

Attachment "normcache.patch" to ticket [953284ffff] added by dgp 2004-05-13 20:46:42.
0000: 3f 20 36 32 33 37 38 37 2e 70 61 74 63 68 0a 3f  ? 623787.patch.?
0010: 20 37 32 39 36 39 32 2e 70 61 74 63 68 0a 3f 20   729692.patch.? 
0020: 38 31 31 34 36 31 2e 70 61 74 63 68 0a 3f 20 38  811461.patch.? 8
0030: 35 36 39 35 31 2e 70 61 74 63 68 0a 3f 20 38 35  56951.patch.? 85
0040: 39 32 35 31 2e 70 61 74 63 68 0a 3f 20 38 36 30  9251.patch.? 860
0050: 34 30 32 2e 70 61 74 63 68 0a 3f 20 38 37 35 30  402.patch.? 8750
0060: 35 35 2e 70 61 74 63 68 0a 3f 20 39 31 38 33 32  55.patch.? 91832
0070: 30 2e 70 61 74 63 68 0a 3f 20 39 34 30 32 38 31  0.patch.? 940281
0080: 2e 70 61 74 63 68 0a 3f 20 39 34 31 31 30 38 2e  .patch.? 941108.
0090: 70 61 74 63 68 0a 3f 20 39 34 33 39 39 35 2e 70  patch.? 943995.p
00a0: 61 74 63 68 0a 3f 20 39 34 35 34 34 37 2e 70 61  atch.? 945447.pa
00b0: 74 63 68 0a 3f 20 39 34 36 39 35 32 2e 70 61 74  tch.? 946952.pat
00c0: 63 68 0a 3f 20 39 34 37 35 36 34 2e 70 61 74 63  ch.? 947564.patc
00d0: 68 0a 3f 20 39 34 38 31 37 37 2e 70 61 74 63 68  h.? 948177.patch
00e0: 0a 3f 20 62 32 64 2e 74 65 73 74 2e 67 7a 0a 3f  .? b2d.test.gz.?
00f0: 20 64 65 62 75 67 0a 3f 20 65 78 70 6c 6f 72 65   debug.? explore
0100: 0a 3f 20 66 73 4f 70 74 2e 70 61 74 63 68 0a 3f  .? fsOpt.patch.?
0110: 20 66 73 6f 70 74 2e 70 61 74 63 68 0a 3f 20 66   fsopt.patch.? f
0120: 73 6f 70 74 32 2e 70 61 74 63 68 0a 3f 20 66 73  sopt2.patch.? fs
0130: 6f 70 74 32 2e 70 61 74 63 68 2e 64 6f 73 0a 3f  opt2.patch.dos.?
0140: 20 66 73 6f 70 74 33 2e 70 61 74 63 68 0a 3f 20   fsopt3.patch.? 
0150: 66 73 6f 70 74 35 2e 70 61 74 63 68 0a 3f 20 68  fsopt5.patch.? h
0160: 65 61 64 65 72 73 2e 70 61 74 63 68 0a 3f 20 6e  eaders.patch.? n
0170: 6f 72 6d 63 61 63 68 65 2e 70 61 74 63 68 0a 3f  ormcache.patch.?
0180: 20 70 70 70 0a 3f 20 72 65 74 75 72 6e 2e 70 61   ppp.? return.pa
0190: 74 63 68 0a 3f 20 72 6f 62 75 73 74 2e 70 61 74  tch.? robust.pat
01a0: 63 68 0a 3f 20 73 6f 6c 61 72 69 73 0a 3f 20 73  ch.? solaris.? s
01b0: 6f 6c 63 63 0a 3f 20 73 6f 6c 74 68 72 65 61 64  olcc.? solthread
01c0: 0a 3f 20 74 63 6c 50 6f 72 74 2e 64 69 66 66 0a  .? tclPort.diff.
01d0: 3f 20 74 63 6c 50 6f 72 74 2e 64 69 66 66 2d 6f  ? tclPort.diff-o
01e0: 6c 64 0a 3f 20 74 68 72 65 61 64 0a 3f 20 75 6e  ld.? thread.? un
01f0: 64 6f 2e 70 61 74 63 68 0a 3f 20 67 65 6e 65 72  do.patch.? gener
0200: 69 63 2f 65 76 65 78 0a 3f 20 67 65 6e 65 72 69  ic/evex.? generi
0210: 63 2f 6e 6f 74 65 73 0a 3f 20 67 65 6e 65 72 69  c/notes.? generi
0220: 63 2f 70 64 73 0a 3f 20 67 65 6e 65 72 69 63 2f  c/pds.? generic/
0230: 74 63 6c 43 6d 64 41 48 2e 63 2e 69 70 0a 3f 20  tclCmdAH.c.ip.? 
0240: 67 65 6e 65 72 69 63 2f 74 63 6c 46 69 6c 65 4e  generic/tclFileN
0250: 61 6d 65 2e 63 2d 6d 79 73 74 65 72 79 0a 3f 20  ame.c-mystery.? 
0260: 67 65 6e 65 72 69 63 2f 74 65 6d 70 0a 3f 20 67  generic/temp.? g
0270: 65 6e 65 72 69 63 2f 74 6d 70 0a 3f 20 6c 69 62  eneric/tmp.? lib
0280: 72 61 72 79 2f 6c 61 74 65 73 74 2e 64 69 66 66  rary/latest.diff
0290: 0a 3f 20 6c 69 62 72 61 72 79 2f 74 63 6c 74 65  .? library/tclte
02a0: 73 74 2f 63 6f 6e 73 74 72 61 69 6e 74 73 2e 74  st/constraints.t
02b0: 63 6c 0a 3f 20 6c 69 62 72 61 72 79 2f 74 63 6c  cl.? library/tcl
02c0: 74 65 73 74 2f 66 69 6c 65 73 2e 74 63 6c 0a 3f  test/files.tcl.?
02d0: 20 6c 69 62 72 61 72 79 2f 74 63 6c 74 65 73 74   library/tcltest
02e0: 2f 74 65 73 74 72 65 73 75 6c 74 73 2e 74 63 6c  /testresults.tcl
02f0: 0a 3f 20 75 6e 69 78 2f 2e 6e 66 73 30 30 30 30  .? unix/.nfs0000
0300: 30 30 30 30 30 30 30 32 63 65 34 34 30 30 30 30  00000002ce440000
0310: 30 30 30 61 0a 3f 20 75 6e 69 78 2f 61 75 74 6f  000a.? unix/auto
0320: 6d 34 74 65 2e 63 61 63 68 65 0a 3f 20 75 6e 69  m4te.cache.? uni
0330: 78 2f 62 6c 61 6d 65 0a 3f 20 75 6e 69 78 2f 64  x/blame.? unix/d
0340: 6c 74 65 73 74 2e 6d 61 72 6b 65 72 0a 3f 20 75  ltest.marker.? u
0350: 6e 69 78 2f 68 74 74 70 64 5f 32 38 30 33 37 0a  nix/httpd_28037.
0360: 3f 20 75 6e 69 78 2f 6e 65 2e 74 63 6c 0a 3f 20  ? unix/ne.tcl.? 
0370: 75 6e 69 78 2f 73 74 47 48 68 46 38 68 0a 3f 20  unix/stGHhF8h.? 
0380: 75 6e 69 78 2f 73 74 4a 57 32 65 69 58 0a 3f 20  unix/stJW2eiX.? 
0390: 75 6e 69 78 2f 74 63 6c 55 6e 69 78 46 43 6d 64  unix/tclUnixFCmd
03a0: 2e 63 2d 6d 69 6e 65 0a 3f 20 77 69 6e 2f 61 75  .c-mine.? win/au
03b0: 74 6f 6d 34 74 65 2e 63 61 63 68 65 0a 49 6e 64  tom4te.cache.Ind
03c0: 65 78 3a 20 74 65 73 74 73 2f 66 69 6c 65 53 79  ex: tests/fileSy
03d0: 73 74 65 6d 2e 74 65 73 74 0a 3d 3d 3d 3d 3d 3d  stem.test.======
03e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
03f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0400: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
0410: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 52 43  =============.RC
0420: 53 20 66 69 6c 65 3a 20 2f 63 76 73 72 6f 6f 74  S file: /cvsroot
0430: 2f 74 63 6c 2f 74 63 6c 2f 74 65 73 74 73 2f 66  /tcl/tcl/tests/f
0440: 69 6c 65 53 79 73 74 65 6d 2e 74 65 73 74 2c 76  ileSystem.test,v
0450: 0a 72 65 74 72 69 65 76 69 6e 67 20 72 65 76 69  .retrieving revi
0460: 73 69 6f 6e 20 31 2e 34 31 0a 64 69 66 66 20 2d  sion 1.41.diff -
0470: 75 20 2d 72 31 2e 34 31 20 66 69 6c 65 53 79 73  u -r1.41 fileSys
0480: 74 65 6d 2e 74 65 73 74 0a 2d 2d 2d 20 74 65 73  tem.test.--- tes
0490: 74 73 2f 66 69 6c 65 53 79 73 74 65 6d 2e 74 65  ts/fileSystem.te
04a0: 73 74 09 37 20 4d 61 79 20 32 30 30 34 20 30 37  st.7 May 2004 07
04b0: 3a 34 34 3a 33 38 20 2d 30 30 30 30 09 31 2e 34  :44:38 -0000.1.4
04c0: 31 0a 2b 2b 2b 20 74 65 73 74 73 2f 66 69 6c 65  1.+++ tests/file
04d0: 53 79 73 74 65 6d 2e 74 65 73 74 09 31 33 20 4d  System.test.13 M
04e0: 61 79 20 32 30 30 34 20 31 33 3a 34 34 3a 33 36  ay 2004 13:44:36
04f0: 20 2d 30 30 30 30 0a 40 40 20 2d 34 32 32 2c 36   -0000.@@ -422,6
0500: 20 2b 34 32 32 2c 34 37 20 40 40 0a 20 20 20 20   +422,47 @@.    
0510: 20 7d 0a 20 7d 20 7b 6f 6b 7d 0a 20 0a 2b 74 65   }. } {ok}. .+te
0520: 73 74 20 66 69 6c 65 73 79 73 74 65 6d 2d 31 2e  st filesystem-1.
0530: 34 32 20 7b 66 69 6c 65 20 6e 6f 72 6d 61 6c 69  42 {file normali
0540: 73 61 74 69 6f 6e 3a 20 6f 75 74 64 61 74 65 64  sation: outdated
0550: 20 63 61 63 68 65 7d 20 2d 73 65 74 75 70 20 7b   cache} -setup {
0560: 0a 2b 20 20 20 20 73 65 74 20 77 20 5b 6d 61 6b  .+    set w [mak
0570: 65 44 69 72 65 63 74 6f 72 79 20 77 72 6f 6e 67  eDirectory wrong
0580: 5d 0a 2b 20 20 20 20 6d 61 6b 65 46 69 6c 65 20  ].+    makeFile 
0590: 77 72 6f 6e 67 20 66 69 6c 65 20 24 77 0a 2b 20  wrong file $w.+ 
05a0: 20 20 20 73 65 74 20 72 20 5b 6d 61 6b 65 44 69     set r [makeDi
05b0: 72 65 63 74 6f 72 79 20 72 69 67 68 74 5d 0a 2b  rectory right].+
05c0: 20 20 20 20 6d 61 6b 65 46 69 6c 65 20 72 69 67      makeFile rig
05d0: 68 74 20 66 69 6c 65 20 24 72 0a 2b 20 20 20 20  ht file $r.+    
05e0: 73 65 74 20 6c 69 6e 6b 20 5b 66 69 6c 65 20 6a  set link [file j
05f0: 6f 69 6e 20 5b 66 69 6c 65 20 64 69 72 6e 61 6d  oin [file dirnam
0600: 65 20 24 77 5d 20 6c 69 6e 6b 5d 0a 2b 20 20 20  e $w] link].+   
0610: 20 66 69 6c 65 20 6c 69 6e 6b 20 24 6c 69 6e 6b   file link $link
0620: 20 77 72 6f 6e 67 0a 2b 7d 20 2d 62 6f 64 79 20   wrong.+} -body 
0630: 7b 0a 2b 20 20 20 20 73 65 74 20 70 31 20 5b 66  {.+    set p1 [f
0640: 69 6c 65 20 6a 6f 69 6e 20 24 6c 69 6e 6b 20 66  ile join $link f
0650: 69 6c 65 5d 09 3b 23 20 24 70 31 20 61 6e 64 20  ile].;# $p1 and 
0660: 24 70 32 20 68 61 76 65 20 73 61 6d 65 20 28 73  $p2 have same (s
0670: 74 72 69 6e 67 29 0a 2b 20 20 20 20 73 65 74 20  tring).+    set 
0680: 70 32 20 5b 66 69 6c 65 20 6a 6f 69 6e 20 24 6c  p2 [file join $l
0690: 69 6e 6b 20 66 69 6c 65 5d 09 3b 23 20 76 61 6c  ink file].;# val
06a0: 75 65 0a 2b 20 20 20 20 66 69 6c 65 20 6e 6f 72  ue.+    file nor
06b0: 6d 61 6c 69 7a 65 20 24 70 31 09 09 3b 23 20 63  malize $p1..;# c
06c0: 61 63 68 65 20 74 68 65 20 22 77 72 6f 6e 67 22  ache the "wrong"
06d0: 20 6e 6f 72 6d 61 6c 69 7a 65 64 20 70 61 74 68   normalized path
06e0: 0a 2b 0a 2b 20 20 20 20 66 69 6c 65 20 64 65 6c  .+.+    file del
06f0: 65 74 65 20 24 6c 69 6e 6b 0a 2b 20 20 20 20 66  ete $link.+    f
0700: 69 6c 65 20 6c 69 6e 6b 20 24 6c 69 6e 6b 20 72  ile link $link r
0710: 69 67 68 74 09 3b 23 20 63 68 61 6e 67 65 20 6c  ight.;# change l
0720: 69 6e 6b 20 72 65 66 65 72 65 6e 63 65 0a 2b 0a  ink reference.+.
0730: 2b 20 20 20 20 23 20 42 65 63 61 75 73 65 20 73  +    # Because s
0740: 74 72 69 6e 67 20 76 61 6c 75 65 73 20 61 72 65  tring values are
0750: 20 74 68 65 20 73 61 6d 65 2c 20 61 63 63 6f 72   the same, accor
0760: 64 69 6e 67 20 74 6f 20 54 63 6c 20 76 61 6c 75  ding to Tcl valu
0770: 65 0a 2b 20 20 20 20 23 20 72 75 6c 65 73 2c 20  e.+    # rules, 
0780: 74 68 65 73 65 20 6f 70 65 72 61 74 69 6f 6e 73  these operations
0790: 20 73 68 6f 75 6c 64 20 70 72 6f 64 75 63 65 20   should produce 
07a0: 63 6f 6e 73 69 73 74 65 6e 74 20 72 65 73 75 6c  consistent resul
07b0: 74 73 2e 0a 2b 20 20 20 20 23 20 54 68 65 79 20  ts..+    # They 
07c0: 64 6f 20 6e 6f 74 2c 20 62 65 63 61 75 73 65 20  do not, because 
07d0: 24 70 31 20 68 6f 6c 64 73 20 61 6e 20 6f 75 74  $p1 holds an out
07e0: 64 61 74 65 64 20 63 61 63 68 65 64 20 6e 6f 72  dated cached nor
07f0: 6d 61 6c 69 7a 65 64 0a 2b 20 20 20 20 23 20 70  malized.+    # p
0800: 61 74 68 2c 20 62 72 65 61 6b 69 6e 67 20 22 65  ath, breaking "e
0810: 76 65 72 79 74 68 69 6e 67 20 69 73 20 61 20 73  verything is a s
0820: 74 72 69 6e 67 22 2e 0a 2b 20 20 20 20 73 65 74  tring"..+    set
0830: 20 72 65 73 75 6c 74 20 7b 7d 09 0a 2b 20 20 20   result {}..+   
0840: 20 6c 61 70 70 65 6e 64 20 72 65 73 75 6c 74 20   lappend result 
0850: 24 70 31 0a 2b 20 20 20 20 73 65 74 20 66 20 5b  $p1.+    set f [
0860: 6f 70 65 6e 20 24 70 31 5d 0a 2b 20 20 20 20 6c  open $p1].+    l
0870: 61 70 70 65 6e 64 20 72 65 73 75 6c 74 20 5b 72  append result [r
0880: 65 61 64 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 24  ead -nonewline $
0890: 66 5d 0a 2b 20 20 20 20 63 6c 6f 73 65 20 24 66  f].+    close $f
08a0: 0a 2b 20 20 20 20 6c 61 70 70 65 6e 64 20 72 65  .+    lappend re
08b0: 73 75 6c 74 20 5b 66 69 6c 65 20 6e 6f 72 6d 61  sult [file norma
08c0: 6c 69 7a 65 20 24 70 31 5d 0a 2b 0a 2b 20 20 20  lize $p1].+.+   
08d0: 20 6c 61 70 70 65 6e 64 20 72 65 73 75 6c 74 20   lappend result 
08e0: 24 70 32 0a 2b 20 20 20 20 73 65 74 20 66 20 5b  $p2.+    set f [
08f0: 6f 70 65 6e 20 24 70 32 5d 0a 2b 20 20 20 20 6c  open $p2].+    l
0900: 61 70 70 65 6e 64 20 72 65 73 75 6c 74 20 5b 72  append result [r
0910: 65 61 64 20 2d 6e 6f 6e 65 77 6c 69 6e 65 20 24  ead -nonewline $
0920: 66 5d 0a 2b 20 20 20 20 63 6c 6f 73 65 20 24 66  f].+    close $f
0930: 0a 2b 20 20 20 20 6c 61 70 70 65 6e 64 20 72 65  .+    lappend re
0940: 73 75 6c 74 20 5b 66 69 6c 65 20 6e 6f 72 6d 61  sult [file norma
0950: 6c 69 7a 65 20 24 70 32 5d 0a 2b 0a 2b 7d 20 2d  lize $p2].+.+} -
0960: 63 6c 65 61 6e 75 70 20 7b 0a 2b 20 20 20 20 66  cleanup {.+    f
0970: 69 6c 65 20 64 65 6c 65 74 65 20 24 6c 69 6e 6b  ile delete $link
0980: 0a 2b 20 20 20 20 72 65 6d 6f 76 65 46 69 6c 65  .+    removeFile
0990: 20 66 69 6c 65 20 24 72 0a 2b 20 20 20 20 72 65   file $r.+    re
09a0: 6d 6f 76 65 44 69 72 65 63 74 6f 72 79 20 72 69  moveDirectory ri
09b0: 67 68 74 0a 2b 20 20 20 20 72 65 6d 6f 76 65 46  ght.+    removeF
09c0: 69 6c 65 20 66 69 6c 65 20 24 77 0a 2b 20 20 20  ile file $w.+   
09d0: 20 72 65 6d 6f 76 65 44 69 72 65 63 74 6f 72 79   removeDirectory
09e0: 20 77 72 6f 6e 67 0a 2b 7d 20 2d 6d 61 74 63 68   wrong.+} -match
09f0: 20 67 6c 6f 62 20 2d 72 65 73 75 6c 74 5c 0a 2b   glob -result\.+
0a00: 7b 2a 2f 6c 69 6e 6b 2f 66 69 6c 65 20 72 69 67  {*/link/file rig
0a10: 68 74 20 2a 2f 72 69 67 68 74 2f 66 69 6c 65 20  ht */right/file 
0a20: 2a 2f 6c 69 6e 6b 2f 66 69 6c 65 20 72 69 67 68  */link/file righ
0a30: 74 20 2a 2f 72 69 67 68 74 2f 66 69 6c 65 7d 0a  t */right/file}.
0a40: 2b 0a 20 74 65 73 74 20 66 69 6c 65 73 79 73 74  +. test filesyst
0a50: 65 6d 2d 32 2e 30 20 7b 6e 65 77 20 6e 61 74 69  em-2.0 {new nati
0a60: 76 65 20 70 61 74 68 7d 20 7b 75 6e 69 78 4f 6e  ve path} {unixOn
0a70: 6c 79 7d 20 7b 0a 20 20 20 20 66 6f 72 65 61 63  ly} {.    foreac
0a80: 68 20 66 20 5b 6c 73 6f 72 74 20 5b 67 6c 6f 62  h f [lsort [glob
0a90: 20 2d 6e 6f 63 6f 6d 70 6c 61 69 6e 20 2f 75 73   -nocomplain /us
0aa0: 72 2f 62 69 6e 2f 63 2a 5d 5d 20 7b 0a 20 20 20  r/bin/c*]] {.   
0ab0: 20 20 20 20 20 63 61 74 63 68 20 7b 66 69 6c 65       catch {file
0ac0: 20 72 65 61 64 6c 69 6e 6b 20 24 66 7d 0a         readlink $f}.