Artifact d140a990b11b1ca9481c4ccd1b8704bd1b4d58ac:
File
www/bugtheory.wiki
part of check-in
[6ba52ae761]
- Documentation tweaks. No changes to code.
by
drh on
2009-02-21 13:09:40.
0000: 3c 68 31 3e 42 75 67 2d 54 72 61 63 6b 69 6e 67 <h1>Bug-Tracking
0010: 20 49 6e 20 3c 61 20 68 72 65 66 3d 22 69 6e 64 In <a href="ind
0020: 65 78 2e 77 69 6b 69 22 3e 46 6f 73 73 69 6c 3c ex.wiki">Fossil<
0030: 2f 61 3e 3c 2f 68 31 3e 0a 0a 41 20 62 75 67 2d /a></h1>..A bug-
0040: 72 65 70 6f 72 74 20 69 6e 20 66 6f 73 73 69 6c report in fossil
0050: 20 69 73 20 63 61 6c 6c 65 64 20 61 20 22 74 69 is called a "ti
0060: 63 6b 65 74 22 2e 20 20 54 69 63 6b 65 74 73 20 cket". Tickets
0070: 61 72 65 20 74 72 61 63 6b 65 64 0a 73 65 70 61 are tracked.sepa
0080: 72 61 74 65 6c 79 20 66 72 6f 6d 20 63 6f 64 65 rately from code
0090: 20 63 68 65 63 6b 2d 69 6e 73 2e 0a 0a 53 6f 6d check-ins...Som
00a0: 65 20 6f 74 68 65 72 20 64 69 73 74 72 69 62 75 e other distribu
00b0: 74 65 64 20 62 75 67 2d 74 72 61 63 6b 69 6e 67 ted bug-tracking
00c0: 20 73 79 73 74 65 6d 73 20 73 74 6f 72 65 20 74 systems store t
00d0: 69 63 6b 65 74 73 20 61 73 20 66 69 6c 65 73 20 ickets as files
00e0: 77 69 74 68 69 6e 0a 74 68 65 20 73 6f 75 72 63 within.the sourc
00f0: 65 20 74 72 65 65 20 61 6e 64 20 74 68 65 72 65 e tree and there
0100: 62 79 20 6c 65 76 65 72 61 67 65 20 74 68 65 20 by leverage the
0110: 73 79 6e 63 69 6e 67 20 61 6e 64 20 6d 65 72 67 syncing and merg
0120: 69 6e 67 20 63 61 70 61 62 69 6c 69 74 69 65 73 ing capabilities
0130: 0a 6f 66 20 74 68 65 20 76 65 72 73 69 6f 6e 69 .of the versioni
0140: 6e 67 20 73 79 73 74 65 6d 20 74 6f 20 73 79 6e ng system to syn
0150: 63 20 61 6e 64 20 6d 65 72 67 65 20 74 69 63 6b c and merge tick
0160: 65 74 73 2e 20 20 54 68 69 73 20 61 70 70 72 6f ets. This appro
0170: 61 63 68 20 69 73 0a 72 65 6a 65 63 74 65 64 20 ach is.rejected
0180: 69 6e 20 66 6f 73 73 69 6c 20 66 6f 72 20 74 68 in fossil for th
0190: 72 65 65 20 72 65 61 73 6f 6e 73 3a 0a 0a 20 20 ree reasons:..
01a0: 31 2e 20 20 43 68 65 63 6b 2d 69 6e 73 20 69 6e 1. Check-ins in
01b0: 20 66 6f 73 73 69 6c 20 61 72 65 20 69 6d 6d 75 fossil are immu
01c0: 74 61 62 6c 65 2e 20 20 53 6f 20 69 66 0a 20 20 table. So if.
01d0: 20 20 20 20 74 69 63 6b 65 74 73 20 77 65 72 65 tickets were
01e0: 20 70 61 72 74 20 6f 66 20 74 68 65 20 63 68 65 part of the che
01f0: 63 6b 2d 69 6e 2c 20 74 68 65 6e 20 74 68 65 72 ck-in, then ther
0200: 65 20 77 6f 75 6c 64 20 62 65 20 6e 6f 20 77 61 e would be no wa
0210: 79 20 74 6f 20 61 64 64 0a 20 20 20 20 20 20 6e y to add. n
0220: 65 77 20 74 69 63 6b 65 74 73 20 74 6f 20 61 20 ew tickets to a
0230: 63 68 65 63 6b 2d 69 6e 20 61 73 20 6e 65 77 20 check-in as new
0240: 62 75 67 73 20 61 72 65 20 64 69 73 63 6f 76 65 bugs are discove
0250: 72 65 64 2e 0a 0a 20 20 32 2e 20 20 41 6e 79 20 red... 2. Any
0260: 70 72 6f 6a 65 63 74 20 6f 66 20 72 65 61 73 6f project of reaso
0270: 6e 61 62 6c 65 20 73 69 7a 65 20 61 6e 64 20 63 nable size and c
0280: 6f 6d 70 6c 65 78 69 74 79 20 77 69 6c 6c 20 67 omplexity will g
0290: 65 6e 65 72 61 74 65 20 74 68 6f 75 73 61 6e 64 enerate thousand
02a0: 73 0a 20 20 20 20 20 20 61 6e 64 20 74 68 6f 75 s. and thou
02b0: 73 61 6e 64 73 20 6f 66 20 74 69 63 6b 65 74 73 sands of tickets
02c0: 2c 20 61 6e 64 20 77 65 20 64 6f 20 6e 6f 74 20 , and we do not
02d0: 77 61 6e 74 20 61 6c 6c 20 74 68 6f 73 65 20 74 want all those t
02e0: 69 63 6b 65 74 20 66 69 6c 65 73 0a 20 20 20 20 icket files.
02f0: 20 20 63 6c 75 74 74 65 72 69 6e 67 20 74 68 65 cluttering the
0300: 20 73 6f 75 72 63 65 20 74 72 65 65 2e 0a 0a 20 source tree...
0310: 20 33 2e 20 20 57 65 20 77 61 6e 74 20 74 69 63 3. We want tic
0320: 6b 65 74 73 20 74 6f 20 62 65 20 6d 61 6e 61 67 kets to be manag
0330: 65 64 20 66 72 6f 6d 20 74 68 65 20 77 65 62 20 ed from the web
0340: 69 6e 74 65 72 66 61 63 65 20 61 6e 64 20 74 6f interface and to
0350: 20 68 61 76 65 20 61 0a 20 20 20 20 20 20 70 65 have a. pe
0360: 72 6d 69 73 73 69 6f 6e 20 73 79 73 74 65 6d 20 rmission system
0370: 74 68 61 74 20 69 73 20 64 69 73 74 69 6e 63 74 that is distinct
0380: 20 66 72 6f 6d 20 63 68 65 63 6b 2d 69 6e 20 70 from check-in p
0390: 65 72 6d 69 73 73 69 6f 6e 73 2e 0a 20 20 20 20 ermissions..
03a0: 20 20 49 6e 20 6f 74 68 65 72 20 77 6f 72 64 73 In other words
03b0: 2c 20 77 65 20 64 6f 20 6e 6f 74 20 77 61 6e 74 , we do not want
03c0: 20 74 6f 20 72 65 73 74 72 69 63 74 20 74 68 65 to restrict the
03d0: 20 63 72 65 61 74 69 6f 6e 20 61 6e 64 20 65 64 creation and ed
03e0: 69 74 69 6e 67 0a 20 20 20 20 20 20 6f 66 20 74 iting. of t
03f0: 69 63 6b 65 74 73 20 74 6f 20 64 65 76 65 6c 6f ickets to develo
0400: 70 65 72 73 20 77 69 74 68 20 63 68 65 63 6b 2d pers with check-
0410: 69 6e 20 70 72 69 76 69 6c 65 67 65 73 20 61 6e in privileges an
0420: 64 20 61 6e 20 69 6e 73 74 61 6c 6c 65 64 0a 20 d an installed.
0430: 20 20 20 20 20 63 6f 70 79 20 6f 66 20 74 68 65 copy of the
0440: 20 66 6f 73 73 69 6c 20 65 78 65 63 75 74 61 62 fossil executab
0450: 6c 65 2e 20 20 43 61 73 75 61 6c 20 70 61 73 73 le. Casual pass
0460: 65 72 73 2d 62 79 20 6f 6e 20 74 68 65 20 69 6e ers-by on the in
0470: 74 65 72 6e 65 74 20 73 68 6f 75 6c 64 0a 20 20 ternet should.
0480: 20 20 20 20 62 65 20 70 65 72 6d 69 74 74 65 64 be permitted
0490: 20 74 6f 20 63 72 65 61 74 65 20 74 69 63 6b 65 to create ticke
04a0: 74 73 2e 0a 0a 52 65 63 61 6c 6c 20 74 68 61 74 ts...Recall that
04b0: 20 61 20 66 6f 73 73 69 6c 20 72 65 70 6f 73 69 a fossil reposi
04c0: 74 6f 72 79 20 63 6f 6e 73 69 73 74 73 20 6f 66 tory consists of
04d0: 20 61 6e 0a 75 6e 6f 72 64 65 72 65 64 20 63 6f an.unordered co
04e0: 6c 6c 65 63 74 69 6f 6e 20 6f 66 20 3c 69 3e 61 llection of <i>a
04f0: 72 74 69 66 61 63 74 73 3c 2f 69 3e 2e 20 20 28 rtifacts</i>. (
0500: 53 65 65 20 74 68 65 0a 3c 61 20 68 72 65 66 3d See the.<a href=
0510: 22 66 69 6c 65 66 6f 72 6d 61 74 2e 77 69 6b 69 "fileformat.wiki
0520: 22 3e 66 69 6c 65 20 66 6f 72 6d 61 74 20 64 6f ">file format do
0530: 63 75 6d 65 6e 74 3c 2f 61 3e 20 66 6f 72 20 64 cument</a> for d
0540: 65 74 61 69 6c 73 2e 29 0a 53 6f 6d 65 20 61 72 etails.).Some ar
0550: 74 69 66 61 63 74 73 20 68 61 76 65 20 61 20 73 tifacts have a s
0560: 70 65 63 69 61 6c 20 66 6f 72 6d 61 74 2c 20 61 pecial format, a
0570: 6e 64 20 61 6d 6f 6e 67 20 74 68 6f 73 65 20 61 nd among those a
0580: 72 65 0a 3c 61 20 68 72 65 66 3d 22 66 69 6c 65 re.<a href="file
0590: 66 6f 72 6d 61 74 2e 77 69 6b 69 23 74 6b 74 63 format.wiki#tktc
05a0: 68 6e 67 22 3e 54 69 63 6b 65 74 20 43 68 61 6e hng">Ticket Chan
05b0: 67 65 20 41 72 74 69 66 61 63 74 73 3c 2f 61 3e ge Artifacts</a>
05c0: 2e 0a 4f 6e 65 20 6f 72 20 6d 6f 72 65 20 74 69 ..One or more ti
05d0: 63 6b 65 74 20 63 68 61 6e 67 65 20 61 72 74 69 cket change arti
05e0: 66 61 63 74 73 20 61 72 65 20 61 73 73 6f 63 69 facts are associ
05f0: 61 74 65 64 20 77 69 74 68 20 65 61 63 68 20 0a ated with each .
0600: 74 69 63 6b 65 74 2e 20 20 41 20 74 69 63 6b 65 ticket. A ticke
0610: 74 20 69 73 20 63 72 65 61 74 65 64 20 62 79 20 t is created by
0620: 61 20 74 69 63 6b 65 74 20 63 68 61 6e 67 65 20 a ticket change
0630: 61 72 74 69 66 61 63 74 2e 0a 45 61 63 68 20 73 artifact..Each s
0640: 75 62 73 65 71 75 65 6e 74 20 6d 6f 64 69 66 69 ubsequent modifi
0650: 63 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 74 69 cation of the ti
0660: 63 6b 65 74 20 69 73 20 61 20 73 65 70 61 72 61 cket is a separa
0670: 74 65 20 61 72 74 69 66 61 63 74 2e 0a 0a 54 68 te artifact...Th
0680: 65 20 22 70 75 73 68 22 2c 20 22 70 75 6c 6c 22 e "push", "pull"
0690: 2c 20 61 6e 64 20 22 73 79 6e 63 22 20 61 6c 67 , and "sync" alg
06a0: 6f 72 69 74 68 6d 73 20 73 68 61 72 65 20 74 69 orithms share ti
06b0: 63 6b 65 74 20 63 68 61 6e 67 65 20 61 72 74 69 cket change arti
06c0: 66 61 63 74 73 0a 62 65 74 77 65 65 6e 20 72 65 facts.between re
06d0: 70 6f 73 69 74 6f 72 69 65 73 20 69 6e 20 74 68 positories in th
06e0: 65 20 73 61 6d 65 20 77 61 79 20 61 73 20 65 76 e same way as ev
06f0: 65 72 79 20 6f 74 68 65 72 20 61 72 74 69 66 61 ery other artifa
0700: 63 74 2e 20 20 49 6e 20 66 61 63 74 2c 0a 74 68 ct. In fact,.th
0710: 65 20 73 79 6e 63 20 61 6c 67 6f 72 69 74 68 6d e sync algorithm
0720: 20 68 61 73 20 6e 6f 20 6b 6e 6f 77 6c 65 64 67 has no knowledg
0730: 65 20 6f 66 20 74 68 65 20 6d 65 61 6e 69 6e 67 e of the meaning
0740: 20 6f 66 20 74 68 65 20 61 72 74 69 66 61 63 74 of the artifact
0750: 73 20 69 74 0a 69 73 20 73 79 6e 63 69 6e 67 2e s it.is syncing.
0760: 20 20 41 73 20 66 61 72 20 61 73 20 74 68 65 20 As far as the
0770: 73 79 6e 63 20 61 6c 67 6f 72 69 74 68 6d 20 69 sync algorithm i
0780: 73 20 63 6f 6e 63 65 72 6e 65 64 2c 20 61 6c 6c s concerned, all
0790: 20 61 72 74 69 66 61 63 74 73 20 61 72 65 0a 61 artifacts are.a
07a0: 6c 69 6b 65 2e 20 20 41 66 74 65 72 20 74 68 65 like. After the
07b0: 20 73 79 6e 63 20 68 61 73 20 6f 63 63 75 72 73 sync has occurs
07c0: 2c 20 74 68 65 20 69 6e 64 69 76 69 64 75 61 6c , the individual
07d0: 20 72 65 70 6f 73 69 74 6f 72 69 65 73 20 6d 75 repositories mu
07e0: 73 74 0a 6d 61 6b 65 20 73 65 6e 73 65 20 6f 66 st.make sense of
07f0: 20 74 68 65 20 6d 65 61 6e 69 6e 67 20 6f 66 20 the meaning of
0800: 74 68 65 20 76 61 72 69 6f 75 73 20 61 72 74 69 the various arti
0810: 66 61 63 74 73 20 66 6f 72 20 74 68 65 6d 73 65 facts for themse
0820: 6c 76 65 73 2e 0a 0a 3c 68 32 3e 49 6e 74 65 72 lves...<h2>Inter
0830: 70 72 65 74 61 74 69 6f 6e 20 4f 66 20 54 69 63 pretation Of Tic
0840: 6b 65 74 20 43 68 61 6e 67 65 20 41 72 74 69 66 ket Change Artif
0850: 61 63 74 73 3c 2f 68 32 3e 0a 0a 3c 69 3e 4e 6f acts</h2>..<i>No
0860: 74 65 3a 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e te: The followin
0870: 67 20 69 73 20 69 6d 70 6c 65 6d 65 6e 74 61 74 g is implementat
0880: 69 6f 6e 20 64 65 74 61 69 6c 20 77 68 69 63 68 ion detail which
0890: 20 63 61 6e 20 62 65 20 73 61 66 65 6c 79 20 69 can be safely i
08a0: 67 6e 6f 72 65 64 20 62 79 0a 63 61 73 75 61 6c gnored by.casual
08b0: 20 75 73 65 72 73 20 6f 66 20 66 6f 73 73 69 6c users of fossil
08c0: 2e 3c 2f 69 3e 0a 0a 45 76 65 72 79 20 74 69 63 .</i>..Every tic
08d0: 6b 65 74 20 63 68 61 6e 67 65 20 61 72 74 69 66 ket change artif
08e0: 61 63 74 20 63 6f 6e 74 61 69 6e 73 20 28 61 6d act contains (am
08f0: 6f 6e 67 20 6f 74 68 65 72 20 74 68 69 6e 67 73 ong other things
0900: 29 0a 0a 20 20 2a 20 20 61 20 74 69 6d 65 73 74 ).. * a timest
0910: 61 6d 70 2c 0a 20 20 2a 20 20 61 20 74 69 63 6b amp,. * a tick
0920: 65 74 20 49 44 2c 20 61 6e 64 0a 20 20 2a 20 20 et ID, and. *
0930: 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 6e 61 6d 65 one or more name
0940: 2f 76 61 6c 75 65 20 70 61 69 72 73 2e 0a 0a 54 /value pairs...T
0950: 68 65 20 63 75 72 72 65 6e 74 20 73 74 61 74 65 he current state
0960: 20 6f 66 20 61 20 74 69 63 6b 65 74 20 69 73 20 of a ticket is
0970: 66 6f 75 6e 64 20 62 79 20 72 65 70 6c 61 79 69 found by replayi
0980: 6e 67 20 61 6c 6c 20 74 69 63 6b 65 74 0a 63 68 ng all ticket.ch
0990: 61 6e 67 65 20 61 72 74 69 66 61 63 74 73 20 77 ange artifacts w
09a0: 69 74 68 20 74 68 65 20 73 61 6d 65 20 74 69 63 ith the same tic
09b0: 6b 65 74 20 49 44 20 69 6e 20 74 69 6d 65 73 74 ket ID in timest
09c0: 61 6d 70 20 6f 72 64 65 72 2e 0a 46 6f 72 20 61 amp order..For a
09d0: 20 67 69 76 65 6e 20 74 69 63 6b 65 74 2c 20 61 given ticket, a
09e0: 6c 6c 20 76 61 6c 75 65 73 20 61 72 65 20 69 6e ll values are in
09f0: 69 74 69 61 6c 6c 79 20 4e 55 4c 4c 2e 20 20 41 itially NULL. A
0a00: 73 20 65 61 63 68 0a 74 69 63 6b 65 74 20 63 68 s each.ticket ch
0a10: 61 6e 67 65 20 61 72 74 69 66 61 63 74 20 69 73 ange artifact is
0a20: 20 65 6e 63 6f 75 6e 74 65 72 65 64 2c 20 76 61 encountered, va
0a30: 6c 75 65 73 20 61 72 65 20 65 69 74 68 65 72 20 lues are either
0a40: 72 65 70 6c 61 63 65 64 0a 6f 72 20 61 70 70 65 replaced.or appe
0a50: 6e 64 65 64 2c 20 61 63 63 6f 72 64 69 6e 67 20 nded, according
0a60: 74 6f 20 61 20 66 6c 61 67 20 6f 6e 20 74 68 65 to a flag on the
0a70: 20 6e 61 6d 65 2f 76 61 6c 75 65 20 70 61 69 72 name/value pair
0a80: 2e 20 20 54 68 65 20 63 75 72 72 65 6e 74 0a 76 . The current.v
0a90: 61 6c 75 65 73 20 66 6f 72 20 74 68 65 20 66 69 alues for the fi
0aa0: 65 6c 64 73 20 6f 66 20 61 20 74 69 63 6b 65 74 elds of a ticket
0ab0: 20 61 72 65 20 74 68 65 20 76 61 6c 75 65 73 20 are the values
0ac0: 74 68 61 74 20 72 65 6d 61 69 6e 20 61 74 20 74 that remain at t
0ad0: 68 65 0a 65 6e 64 20 6f 66 20 74 68 65 20 72 65 he.end of the re
0ae0: 70 6c 61 79 20 70 72 6f 63 65 73 73 2e 0a 0a 54 play process...T
0af0: 6f 20 63 72 65 61 74 65 20 61 20 6e 65 77 20 74 o create a new t
0b00: 69 63 6b 65 74 2c 20 6f 6e 65 20 69 6e 73 65 72 icket, one inser
0b10: 74 73 20 61 20 74 69 63 6b 65 74 20 63 68 61 6e ts a ticket chan
0b20: 67 65 0a 61 72 74 69 66 61 63 74 20 77 69 74 68 ge.artifact with
0b30: 20 61 20 6e 65 77 20 49 44 2e 20 20 54 68 65 20 a new ID. The
0b40: 74 69 63 6b 65 74 20 49 44 0a 69 73 20 61 20 72 ticket ID.is a r
0b50: 61 6e 64 6f 6d 20 34 30 2d 63 68 61 72 61 63 74 andom 40-charact
0b60: 65 72 20 6c 6f 77 65 72 2d 63 61 73 65 20 68 65 er lower-case he
0b70: 78 61 64 65 63 69 6d 61 6c 20 6e 75 6d 62 65 72 xadecimal number
0b80: 2e 20 20 54 68 65 20 22 74 6b 74 6e 65 77 22 0a . The "tktnew".
0b90: 70 61 67 65 20 69 6e 20 74 68 65 20 66 6f 73 73 page in the foss
0ba0: 69 6c 20 77 65 62 20 69 6e 74 65 72 66 61 63 65 il web interface
0bb0: 20 63 72 65 61 74 65 73 20 6e 65 77 20 74 69 63 creates new tic
0bc0: 6b 65 74 20 49 44 73 0a 75 73 69 6e 67 20 61 20 ket IDs.using a
0bd0: 67 6f 6f 64 20 73 6f 75 72 63 65 20 6f 66 20 72 good source of r
0be0: 61 6e 64 6f 6d 6e 65 73 73 20 74 6f 20 69 6e 73 andomness to ins
0bf0: 75 72 65 20 75 6e 69 71 75 65 6e 65 73 73 2e 0a ure uniqueness..
0c00: 54 68 65 20 6e 61 6d 65 2f 76 61 6c 75 65 20 70 The name/value p
0c10: 61 69 72 73 20 6f 6e 20 74 68 65 20 69 6e 69 74 airs on the init
0c20: 69 61 6c 20 74 69 63 6b 65 74 20 63 68 61 6e 67 ial ticket chang
0c30: 65 0a 61 72 74 69 66 61 63 74 20 61 72 65 20 74 e.artifact are t
0c40: 68 65 20 69 6e 69 74 69 61 6c 20 76 61 6c 75 65 he initial value
0c50: 73 20 66 6f 72 20 74 68 65 20 66 69 65 6c 64 73 s for the fields
0c60: 20 69 6e 20 74 68 65 20 74 69 63 6b 65 74 2e 0a in the ticket..
0c70: 0a 41 6d 65 6e 64 69 6e 67 20 61 20 74 69 63 6b .Amending a tick
0c80: 65 74 20 6d 65 61 6e 73 20 73 69 6d 70 6c 79 20 et means simply
0c90: 63 72 65 61 74 69 6e 67 20 61 20 6e 65 77 20 61 creating a new a
0ca0: 72 74 69 66 61 63 74 20 77 69 74 68 20 74 68 65 rtifact with the
0cb0: 0a 73 61 6d 65 20 74 69 63 6b 65 74 20 49 44 20 .same ticket ID
0cc0: 61 6e 64 20 77 69 74 68 20 6e 61 6d 65 2f 76 61 and with name/va
0cd0: 6c 75 65 20 70 61 69 72 73 20 66 6f 72 20 74 68 lue pairs for th
0ce0: 6f 73 65 20 66 69 65 6c 64 73 20 77 68 69 63 68 ose fields which
0cf0: 0a 61 72 65 20 63 68 61 6e 67 69 6e 67 2e 20 20 .are changing.
0d00: 46 69 65 6c 64 73 20 6f 66 20 74 68 65 20 74 69 Fields of the ti
0d10: 63 6b 65 74 20 77 68 69 63 68 20 61 72 65 20 6e cket which are n
0d20: 6f 74 20 62 65 69 6e 67 20 6d 6f 64 69 66 69 65 ot being modifie
0d30: 64 0a 73 68 6f 75 6c 64 20 6e 6f 74 20 61 70 70 d.should not app
0d40: 65 61 72 20 61 73 20 6e 61 6d 65 2f 76 61 6c 75 ear as name/valu
0d50: 65 20 70 61 69 72 73 20 69 6e 20 74 68 65 20 6e e pairs in the n
0d60: 65 77 20 61 72 74 69 66 61 63 74 2e 0a 0a 54 68 ew artifact...Th
0d70: 69 73 20 61 70 70 72 6f 61 63 68 20 74 6f 20 73 is approach to s
0d80: 74 6f 72 69 6e 67 20 74 69 63 6b 65 74 20 73 74 toring ticket st
0d90: 61 74 65 20 6d 65 61 6e 73 20 74 68 61 74 20 69 ate means that i
0da0: 6e 64 65 70 65 6e 64 65 6e 74 6c 79 20 65 6e 74 ndependently ent
0db0: 65 72 65 64 0a 63 68 61 6e 67 65 73 20 61 72 65 ered.changes are
0dc0: 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 6d automatically m
0dd0: 65 72 67 65 64 20 74 6f 67 65 74 68 65 72 20 77 erged together w
0de0: 68 65 6e 20 61 72 74 69 66 61 63 74 73 20 61 72 hen artifacts ar
0df0: 65 20 73 68 61 72 65 64 0a 62 65 74 77 65 65 6e e shared.between
0e00: 20 72 65 70 6f 73 69 74 6f 72 69 65 73 2e 20 20 repositories.
0e10: 54 69 63 6b 65 74 73 20 64 6f 20 6e 6f 74 20 62 Tickets do not b
0e20: 72 61 6e 63 68 2e 20 20 54 68 69 73 20 61 70 70 ranch. This app
0e30: 72 6f 61 63 68 20 61 6c 73 6f 20 6d 61 6b 65 73 roach also makes
0e40: 0a 69 74 20 74 72 69 76 69 61 6c 20 74 6f 20 74 .it trivial to t
0e50: 72 61 63 6b 20 74 68 65 20 68 69 73 74 6f 72 69 rack the histori
0e60: 63 20 70 72 6f 67 72 65 73 73 69 6f 6e 20 6f 66 c progression of
0e70: 20 63 68 61 6e 67 65 73 20 74 6f 20 61 20 74 69 changes to a ti
0e80: 63 6b 65 74 2e 0a 0a 49 6e 20 6f 72 64 65 72 20 cket...In order
0e90: 66 6f 72 20 74 68 69 73 20 73 63 68 65 6d 65 20 for this scheme
0ea0: 74 6f 20 77 6f 72 6b 2c 20 74 68 65 20 73 79 73 to work, the sys
0eb0: 74 65 6d 20 63 6c 6f 63 6b 73 20 6f 6e 20 6d 61 tem clocks on ma
0ec0: 63 68 69 6e 65 73 20 74 68 61 74 0a 61 64 64 20 chines that.add
0ed0: 6e 65 77 20 74 69 63 6b 65 74 20 63 68 61 6e 67 new ticket chang
0ee0: 65 73 20 61 72 74 69 66 61 63 74 73 20 68 61 76 es artifacts hav
0ef0: 65 20 74 6f 20 62 65 20 73 65 74 20 63 6c 6f 73 e to be set clos
0f00: 65 20 74 6f 20 72 65 61 6c 69 74 79 2e 0a 49 74 e to reality..It
0f10: 20 69 73 20 4f 4b 20 66 6f 72 20 61 20 74 69 63 is OK for a tic
0f20: 6b 65 74 20 63 68 61 6e 67 65 20 61 72 74 69 66 ket change artif
0f30: 61 63 74 20 74 69 6d 65 73 74 61 6d 70 20 74 6f act timestamp to
0f40: 20 62 65 20 6f 66 66 20 62 79 20 61 20 66 65 77 be off by a few
0f50: 0a 6d 69 6e 75 74 65 73 20 6f 72 20 65 76 65 6e .minutes or even
0f60: 20 61 20 66 65 77 20 68 6f 75 72 73 2e 20 20 42 a few hours. B
0f70: 75 74 20 69 66 20 61 20 74 69 6d 65 73 74 61 6d ut if a timestam
0f80: 70 20 6f 6e 20 61 20 74 69 63 6b 65 74 20 63 68 p on a ticket ch
0f90: 61 6e 67 65 0a 61 72 74 69 66 61 63 74 20 69 73 ange.artifact is
0fa0: 20 6f 66 66 20 62 79 20 6d 6f 6e 74 68 73 20 6f off by months o
0fb0: 72 20 79 65 61 72 73 2c 20 69 74 20 63 61 6e 20 r years, it can
0fc0: 73 65 72 69 6f 75 73 6c 79 20 63 6f 6e 66 75 73 seriously confus
0fd0: 65 20 74 68 65 0a 72 65 70 6c 61 79 20 61 6c 67 e the.replay alg
0fe0: 6f 72 69 74 68 6d 20 66 6f 72 20 64 65 74 65 72 orithm for deter
0ff0: 6d 69 6e 69 6e 67 20 74 68 65 20 63 75 72 72 65 mining the curre
1000: 6e 74 20 74 69 63 6b 65 74 20 73 74 61 74 65 2e nt ticket state.
1010: 20 20 54 68 65 72 65 0a 61 72 65 20 74 65 63 68 There.are tech
1020: 6e 69 71 75 65 73 20 61 76 61 69 6c 61 62 6c 65 niques available
1030: 20 74 6f 20 63 61 75 73 65 20 72 6f 67 75 65 20 to cause rogue
1040: 61 72 74 69 66 61 63 74 73 20 74 6f 20 62 65 20 artifacts to be
1050: 69 67 6e 6f 72 65 64 0a 62 79 20 66 6f 73 73 69 ignored.by fossi
1060: 6c 2e 20 20 53 6f 20 69 66 20 61 20 74 69 63 6b l. So if a tick
1070: 65 74 20 63 68 61 6e 67 65 20 61 72 74 69 66 61 et change artifa
1080: 63 74 20 77 69 74 68 20 61 20 62 61 64 20 74 69 ct with a bad ti
1090: 6d 65 73 74 61 6d 70 0a 64 6f 65 73 20 67 65 74 mestamp.does get
10a0: 20 69 6e 74 6f 20 61 20 72 65 70 6f 73 69 74 6f into a reposito
10b0: 72 79 2c 20 69 74 20 63 61 6e 20 62 65 20 72 65 ry, it can be re
10c0: 6d 6f 76 65 64 20 62 79 20 61 6e 20 61 64 6d 69 moved by an admi
10d0: 6e 69 73 74 72 61 74 6f 72 2e 0a 42 75 74 20 74 nistrator..But t
10e0: 68 65 20 62 65 73 74 20 61 70 70 72 6f 61 63 68 he best approach
10f0: 20 69 73 20 74 6f 20 74 61 6b 65 20 73 74 65 70 is to take step
1100: 73 20 74 6f 20 69 6e 73 75 72 65 20 74 68 61 74 s to insure that
1110: 20 74 69 6d 65 73 74 61 6d 70 73 0a 61 72 65 20 timestamps.are
1120: 61 70 70 72 6f 78 69 6d 61 74 65 6c 79 20 63 6f approximately co
1130: 72 72 65 63 74 20 69 6e 20 74 68 65 20 66 69 72 rrect in the fir
1140: 73 74 20 70 6c 61 63 65 2e 0a 0a 3c 68 32 3e 4c st place...<h2>L
1150: 6f 63 61 6c 20 43 6f 6e 66 69 67 75 72 61 74 69 ocal Configurati
1160: 6f 6e 3c 2f 68 32 3e 0a 0a 54 68 65 20 74 69 63 on</h2>..The tic
1170: 6b 65 74 20 63 68 61 6e 67 65 20 61 72 74 69 66 ket change artif
1180: 61 63 74 73 20 61 72 65 20 70 61 72 74 20 6f 66 acts are part of
1190: 20 74 68 65 20 67 6c 6f 62 61 6c 20 73 74 61 74 the global stat
11a0: 65 20 66 6f 72 20 61 20 70 72 6f 6a 65 63 74 2e e for a project.
11b0: 0a 54 68 65 20 67 6c 6f 62 61 6c 20 73 74 61 74 .The global stat
11c0: 65 20 69 73 20 74 68 61 74 20 77 68 69 63 68 20 e is that which
11d0: 69 73 20 73 68 61 72 65 64 20 62 65 74 77 65 65 is shared betwee
11e0: 6e 20 72 65 70 6f 73 69 74 6f 72 69 65 73 20 64 n repositories d
11f0: 75 72 69 6e 67 0a 61 20 73 79 6e 63 2e 20 20 45 uring.a sync. E
1200: 61 63 68 20 72 65 70 6f 73 69 74 6f 72 79 20 61 ach repository a
1210: 6c 73 6f 20 68 61 73 20 6c 6f 63 61 6c 20 73 74 lso has local st
1220: 61 74 65 20 77 68 69 63 68 20 69 73 20 6e 6f 74 ate which is not
1230: 20 28 6e 6f 72 6d 61 6c 6c 79 29 0a 73 68 61 72 (normally).shar
1240: 65 64 2e 20 20 54 68 65 20 6e 61 6d 65 2f 76 61 ed. The name/va
1250: 6c 75 65 20 70 61 69 72 73 20 66 6f 72 20 61 20 lue pairs for a
1260: 74 69 63 6b 65 74 20 61 72 65 20 70 61 72 74 20 ticket are part
1270: 6f 66 20 67 6c 6f 62 61 6c 20 73 74 61 74 65 2c of global state,
1280: 0a 62 75 74 20 74 68 65 20 69 6e 74 65 72 70 72 .but the interpr
1290: 65 74 61 74 69 6f 6e 20 61 6e 64 20 64 69 73 70 etation and disp
12a0: 6c 61 79 20 6f 66 20 74 68 61 74 20 69 6e 66 6f lay of that info
12b0: 72 6d 61 74 69 6f 6e 20 69 73 20 6c 6f 63 61 6c rmation is local
12c0: 20 73 74 61 74 65 2e 0a 48 65 6e 63 65 2c 20 65 state..Hence, e
12d0: 61 63 68 20 72 65 70 6f 73 69 74 6f 72 79 20 69 ach repository i
12e0: 73 20 66 72 65 65 20 74 6f 20 73 65 74 20 75 70 s free to set up
12f0: 20 69 74 73 20 6f 77 6e 20 74 69 63 6b 65 74 20 its own ticket
1300: 64 69 73 70 6c 61 79 20 61 6e 64 0a 69 6e 70 75 display and.inpu
1310: 74 20 66 6f 72 6d 61 74 73 20 61 6e 64 20 72 65 t formats and re
1320: 70 6f 72 74 69 6e 67 20 72 75 6c 65 73 20 61 63 porting rules ac
1330: 63 6f 72 64 69 6e 67 20 74 6f 20 69 74 73 20 6f cording to its o
1340: 77 6e 20 70 61 72 74 69 63 75 6c 61 72 20 6e 65 wn particular ne
1350: 65 64 73 2e 0a 0a 45 61 63 68 20 72 65 70 6f 73 eds...Each repos
1360: 69 74 6f 72 79 20 64 65 66 69 6e 65 73 20 69 74 itory defines it
1370: 73 20 6f 77 6e 20 54 49 43 4b 45 54 20 74 61 62 s own TICKET tab
1380: 6c 65 20 69 6e 20 69 74 73 20 64 61 74 61 62 61 le in its databa
1390: 73 65 2e 20 20 54 68 65 72 65 20 69 73 0a 6f 6e se. There is.on
13a0: 65 20 72 6f 77 20 69 6e 20 74 68 65 20 54 49 43 e row in the TIC
13b0: 4b 45 54 20 74 61 62 6c 65 20 66 6f 72 20 65 61 KET table for ea
13c0: 63 68 20 75 6e 69 71 75 65 20 74 69 63 6b 65 74 ch unique ticket
13d0: 20 49 44 2e 20 20 54 68 65 0a 6e 61 6d 65 73 20 ID. The.names
13e0: 6f 66 20 63 6f 6c 75 6d 6e 73 20 69 6e 20 74 68 of columns in th
13f0: 65 20 54 49 43 4b 45 54 20 74 61 62 6c 65 20 63 e TICKET table c
1400: 6f 72 72 65 73 70 6f 6e 64 20 74 6f 20 74 68 65 orrespond to the
1410: 20 6e 61 6d 65 73 20 69 6e 0a 74 68 65 20 6e 61 names in.the na
1420: 6d 65 2f 76 61 6c 75 65 20 70 61 69 72 73 20 6f me/value pairs o
1430: 66 20 74 69 63 6b 65 74 20 63 68 61 6e 67 65 20 f ticket change
1440: 61 72 74 69 66 61 63 74 73 2e 20 20 57 68 65 6e artifacts. When
1450: 20 72 75 6e 6e 69 6e 67 20 74 68 65 20 72 65 70 running the rep
1460: 6c 61 79 0a 61 6c 67 6f 72 69 74 68 6d 2c 20 69 lay.algorithm, i
1470: 66 20 61 20 6e 61 6d 65 2f 76 61 6c 75 65 20 70 f a name/value p
1480: 61 69 72 20 69 73 20 73 65 65 6e 20 77 68 69 63 air is seen whic
1490: 68 20 68 61 73 20 6e 6f 20 63 6f 72 72 65 73 70 h has no corresp
14a0: 6f 6e 64 69 6e 67 20 63 6f 6c 75 6d 6e 0a 69 6e onding column.in
14b0: 20 74 68 65 20 54 49 43 4b 45 54 20 74 61 62 6c the TICKET tabl
14c0: 65 2c 20 74 68 65 6e 20 74 68 61 74 20 6e 61 6d e, then that nam
14d0: 65 2f 76 61 6c 75 65 20 70 61 69 72 20 69 73 20 e/value pair is
14e0: 69 67 6e 6f 72 65 64 2e 20 20 43 6f 6c 75 6d 6e ignored. Column
14f0: 73 20 63 61 6e 0a 62 65 20 61 64 64 65 64 20 6f s can.be added o
1500: 72 20 72 65 6d 6f 76 65 64 20 66 72 6f 6d 20 74 r removed from t
1510: 68 65 20 54 49 43 4b 45 54 20 74 61 62 6c 65 20 he TICKET table
1520: 61 74 20 61 6e 79 20 74 69 6d 65 2e 20 20 57 68 at any time. Wh
1530: 65 6e 65 76 65 72 20 74 68 65 0a 54 49 43 4b 45 enever the.TICKE
1540: 54 20 74 61 62 6c 65 20 69 73 20 6d 6f 64 69 66 T table is modif
1550: 69 65 64 2c 20 74 68 65 20 72 65 70 6c 61 79 20 ied, the replay
1560: 61 6c 67 6f 72 69 74 68 6d 20 61 75 74 6f 6d 61 algorithm automa
1570: 74 69 63 61 6c 6c 79 20 72 65 72 75 6e 73 0a 74 tically reruns.t
1580: 6f 20 72 65 70 6f 70 75 6c 61 74 65 20 74 68 65 o repopulate the
1590: 20 74 61 62 6c 65 20 75 73 69 6e 67 20 74 68 65 table using the
15a0: 20 6e 65 77 20 63 6f 6c 75 6d 6e 20 6e 61 6d 65 new column name
15b0: 73 2e 20 20 4e 6f 74 65 20 74 68 61 74 20 74 68 s. Note that th
15c0: 65 20 54 49 43 4b 45 54 0a 74 61 62 6c 65 20 73 e TICKET.table s
15d0: 63 68 65 6d 61 20 61 6e 64 20 63 6f 6e 74 65 6e chema and conten
15e0: 74 20 69 73 20 70 61 72 74 20 6f 66 20 74 68 65 t is part of the
15f0: 20 6c 6f 63 61 6c 20 73 74 61 74 65 20 6f 66 20 local state of
1600: 61 20 72 65 70 6f 73 69 74 6f 72 79 0a 61 6e 64 a repository.and
1610: 20 69 73 20 6e 6f 74 20 73 68 61 72 65 64 20 77 is not shared w
1620: 69 74 68 20 6f 74 68 65 72 20 72 65 70 6f 73 69 ith other reposi
1630: 74 6f 72 69 65 73 20 64 75 72 69 6e 67 20 61 20 tories during a
1640: 73 79 6e 63 2c 20 70 75 73 68 2c 20 6f 72 20 70 sync, push, or p
1650: 75 6c 6c 2e 0a 0a 45 61 63 68 20 72 65 70 6f 73 ull...Each repos
1660: 69 74 6f 72 79 20 61 6c 73 6f 20 64 65 66 69 6e itory also defin
1670: 65 73 20 73 63 72 69 70 74 73 20 75 73 65 64 20 es scripts used
1680: 74 6f 20 67 65 6e 65 72 61 74 65 20 77 65 62 20 to generate web
1690: 70 61 67 65 73 20 66 6f 72 0a 63 72 65 61 74 69 pages for.creati
16a0: 6e 67 20 6e 65 77 20 74 69 63 6b 65 74 73 2c 20 ng new tickets,
16b0: 76 69 65 77 69 6e 67 20 65 78 69 73 74 69 6e 67 viewing existing
16c0: 20 74 69 63 6b 65 74 73 2c 20 61 6e 64 20 6d 6f tickets, and mo
16d0: 64 69 66 79 69 6e 67 20 61 6e 0a 65 78 69 73 74 difying an.exist
16e0: 69 6e 67 20 74 69 63 6b 65 74 2e 20 20 54 68 65 ing ticket. The
16f0: 73 65 20 73 63 72 69 70 74 73 20 63 6f 6e 73 69 se scripts consi
1700: 73 74 20 6f 66 20 48 54 4d 4c 20 77 69 74 68 20 st of HTML with
1710: 61 6e 20 65 6d 62 65 64 64 65 64 0a 73 63 72 69 an embedded.scri
1720: 70 74 73 20 77 72 69 74 74 65 6e 20 61 6e 20 61 pts written an a
1730: 20 54 63 6c 2d 6c 69 6b 65 20 6c 61 6e 67 75 61 Tcl-like langua
1740: 67 65 20 63 61 6c 6c 65 64 20 22 54 48 31 22 2e ge called "TH1".
1750: 20 20 45 76 65 72 79 20 6e 65 77 20 66 6f 73 73 Every new foss
1760: 69 6c 0a 72 65 70 6f 73 69 74 6f 72 79 20 69 73 il.repository is
1770: 20 63 72 65 61 74 65 64 20 77 69 74 68 20 64 65 created with de
1780: 66 61 75 6c 74 20 73 63 72 69 70 74 73 2e 20 20 fault scripts.
1790: 54 68 65 72 65 20 69 73 20 63 75 72 72 65 6e 74 There is current
17a0: 6c 79 20 6e 6f 0a 64 6f 63 75 6d 65 6e 74 61 74 ly no.documentat
17b0: 69 6f 6e 20 6f 6e 20 74 68 65 20 54 48 31 20 6c ion on the TH1 l
17c0: 61 6e 67 75 61 67 65 2e 20 20 41 64 6d 69 6e 69 anguage. Admini
17d0: 73 74 72 61 74 6f 72 73 20 77 69 73 68 69 6e 67 strators wishing
17e0: 20 74 6f 0a 63 75 73 74 6f 6d 69 7a 65 20 74 68 to.customize th
17f0: 65 69 72 20 74 69 63 6b 65 74 20 65 6e 74 72 79 eir ticket entry
1800: 2c 20 76 69 65 77 69 6e 67 2c 20 61 6e 64 20 65 , viewing, and e
1810: 64 69 74 69 6e 67 20 73 63 72 65 65 6e 73 20 73 diting screens s
1820: 68 6f 75 6c 64 0a 6d 6f 64 69 66 79 20 74 68 65 hould.modify the
1830: 20 64 65 66 61 75 6c 74 20 73 63 72 69 70 74 73 default scripts
1840: 20 74 6f 20 73 75 69 74 20 74 68 65 69 72 20 6e to suit their n
1850: 65 65 64 73 2e 20 20 54 68 65 73 65 20 73 63 72 eeds. These scr
1860: 65 65 6e 20 67 65 6e 65 72 61 74 6f 72 0a 73 63 een generator.sc
1870: 72 69 70 74 73 20 61 72 65 20 70 61 72 74 20 6f ripts are part o
1880: 66 20 74 68 65 20 6c 6f 63 61 6c 20 73 74 61 74 f the local stat
1890: 65 20 6f 66 20 61 20 72 65 70 6f 73 69 74 6f 72 e of a repositor
18a0: 79 20 61 6e 64 20 61 72 65 20 6e 6f 74 20 73 68 y and are not sh
18b0: 61 72 65 64 0a 77 69 74 68 20 6f 74 68 65 72 20 ared.with other
18c0: 72 65 70 6f 73 69 74 6f 72 69 65 73 20 64 75 72 repositories dur
18d0: 69 6e 67 20 61 20 73 79 6e 63 2c 20 70 75 73 68 ing a sync, push
18e0: 2c 20 6f 72 20 70 75 6c 6c 2e 0a 0a 3c 69 3e 54 , or pull...<i>T
18f0: 6f 20 62 65 20 63 6f 6e 74 69 6e 75 65 64 2e 2e o be continued..
1900: 2e 3c 2f 69 3e 0a .</i>.