Hex Artifact Content
Not logged in

Artifact 15d57d26a67607d1ee8c822cdc197cc77c5be2b4:

Ticket change [15d57d26a6] - New ticket [3bfff6e03b] Error when creating a branch from checkin that doesn't have checksum in manifest. by dmitry 2011-03-15 12:10:52.
0000: 44 20 32 30 31 31 2d 30 33 2d 31 35 54 31 32 3a  D 2011-03-15T12:
0010: 31 30 3a 35 32 2e 33 31 38 0a 4a 20 63 6f 6d 6d  10:52.318.J comm
0020: 65 6e 74 20 57 68 65 6e 5c 73 70 61 72 65 6e 74  ent When\sparent
0030: 5c 73 63 68 65 63 6b 2d 69 6e 5c 73 64 6f 65 73  \scheck-in\sdoes
0040: 6e 27 74 5c 73 68 61 76 65 5c 73 61 6e 5c 73 52  n't\shave\san\sR
0050: 2d 63 61 72 64 5c 73 69 6e 5c 73 6d 61 6e 69 66  -card\sin\smanif
0060: 65 73 74 2c 5c 73 46 6f 73 73 69 6c 5c 73 66 61  est,\sFossil\sfa
0070: 69 6c 73 5c 73 74 6f 5c 73 63 72 65 61 74 65 5c  ils\sto\screate\
0080: 73 61 5c 73 62 72 61 6e 63 68 5c 73 66 72 6f 6d  sa\sbranch\sfrom
0090: 5c 73 74 68 69 73 5c 73 63 68 65 63 6b 2d 69 6e  \sthis\scheck-in
00a0: 5c 73 77 69 74 68 5c 73 65 72 72 6f 72 5c 73 22  \swith\serror\s"
00b0: 75 6e 61 62 6c 65 5c 73 74 6f 5c 73 69 6e 73 74  unable\sto\sinst
00c0: 61 6c 6c 5c 73 6e 65 77 5c 73 6d 61 6e 69 66 65  all\snew\smanife
00d0: 73 74 22 2e 5c 73 54 68 69 73 5c 73 69 73 5c 73  st".\sThis\sis\s
00e0: 62 65 63 61 75 73 65 5c 73 46 6f 73 73 69 6c 5c  because\sFossil\
00f0: 73 63 72 65 61 74 65 73 5c 73 6d 61 6e 69 66 65  screates\smanife
0100: 73 74 5c 73 66 6f 72 5c 73 61 5c 73 6e 65 77 5c  st\sfor\sa\snew\
0110: 73 62 72 61 6e 63 68 5c 73 77 68 69 63 68 5c 73  sbranch\swhich\s
0120: 63 6f 6e 74 61 69 6e 73 5c 73 61 5c 73 6c 69 6e  contains\sa\slin
0130: 65 3a 5c 73 22 52 5c 73 22 5c 73 28 61 6e 64 5c  e:\s"R\s"\s(and\
0140: 73 6e 6f 5c 73 63 68 65 63 6b 73 75 6d 29 2c 5c  sno\schecksum),\
0150: 73 69 6e 73 74 65 61 64 5c 73 6f 66 5c 73 6e 6f  sinstead\sof\sno
0160: 74 5c 73 61 64 64 69 6e 67 5c 73 61 6e 5c 73 52  t\sadding\san\sR
0170: 2d 63 61 72 64 5c 73 61 74 5c 73 61 6c 6c 2c 5c  -card\sat\sall,\
0180: 73 61 6e 64 5c 73 6d 61 6e 69 66 65 73 74 5f 70  sand\smanifest_p
0190: 61 72 73 65 28 29 5c 73 66 61 69 6c 73 5c 73 74  arse()\sfails\st
01a0: 6f 5c 73 70 61 72 73 65 5c 73 73 75 63 68 5c 73  o\sparse\ssuch\s
01b0: 6d 61 6e 69 66 65 73 74 73 2e 5c 72 5c 6e 5c 72  manifests.\r\n\r
01c0: 5c 6e 46 69 78 5c 73 28 70 61 74 63 68 5c 73 69  \nFix\s(patch\si
01d0: 73 5c 73 6e 6f 74 5c 73 61 67 61 69 6e 73 74 5c  s\snot\sagainst\
01e0: 73 74 69 70 2c 5c 73 62 75 74 5c 73 79 6f 75 5c  stip,\sbut\syou\
01f0: 73 67 65 74 5c 73 74 68 65 5c 73 69 64 65 61 29  sget\sthe\sidea)
0200: 3a 5c 72 5c 6e 5c 72 5c 6e 3c 76 65 72 62 61 74  :\r\n\r\n<verbat
0210: 69 6d 3e 5c 72 5c 6e 2d 2d 2d 5c 73 73 72 63 2f  im>\r\n---\ssrc/
0220: 62 72 61 6e 63 68 2e 63 5c 72 5c 6e 2b 2b 2b 5c  branch.c\r\n+++\
0230: 73 73 72 63 2f 62 72 61 6e 63 68 2e 63 5c 72 5c  ssrc/branch.c\r\
0240: 6e 40 40 5c 73 2d 39 39 2c 31 31 5c 73 2b 39 39  n@@\s-99,11\s+99
0250: 2c 31 33 5c 73 40 40 5c 72 5c 6e 5c 73 5c 73 5c  ,13\s@@\r\n\s\s\
0260: 73 5c 73 5c 73 7d 5c 72 5c 6e 5c 73 5c 73 5c 73  s\s\s}\r\n\s\s\s
0270: 5c 73 5c 73 62 6c 6f 62 5f 61 70 70 65 6e 64 28  \s\sblob_append(
0280: 26 62 72 61 6e 63 68 2c 5c 73 22 5c 5c 6e 22 2c  &branch,\s"\\n",
0290: 5c 73 31 29 3b 5c 72 5c 6e 5c 73 5c 73 5c 73 7d  \s1);\r\n\s\s\s}
02a0: 5c 72 5c 6e 5c 73 5c 73 5c 73 7a 55 75 69 64 5c  \r\n\s\s\szUuid\
02b0: 73 3d 5c 73 64 62 5f 74 65 78 74 28 30 2c 5c 73  s=\sdb_text(0,\s
02c0: 22 53 45 4c 45 43 54 5c 73 75 75 69 64 5c 73 46  "SELECT\suuid\sF
02d0: 52 4f 4d 5c 73 62 6c 6f 62 5c 73 57 48 45 52 45  ROM\sblob\sWHERE
02e0: 5c 73 72 69 64 3d 25 64 22 2c 5c 73 72 6f 6f 74  \srid=%d",\sroot
02f0: 69 64 29 3b 5c 72 5c 6e 5c 73 5c 73 5c 73 62 6c  id);\r\n\s\s\sbl
0300: 6f 62 5f 61 70 70 65 6e 64 66 28 26 62 72 61 6e  ob_appendf(&bran
0310: 63 68 2c 5c 73 22 50 5c 73 25 73 5c 5c 6e 22 2c  ch,\s"P\s%s\\n",
0320: 5c 73 7a 55 75 69 64 29 3b 5c 72 5c 6e 2d 5c 73  \szUuid);\r\n-\s
0330: 5c 73 62 6c 6f 62 5f 61 70 70 65 6e 64 66 28 26  \sblob_appendf(&
0340: 62 72 61 6e 63 68 2c 5c 73 22 52 5c 73 25 73 5c  branch,\s"R\s%s\
0350: 5c 6e 22 2c 5c 73 70 50 61 72 65 6e 74 2d 3e 7a  \n",\spParent->z
0360: 52 65 70 6f 43 6b 73 75 6d 29 3b 5c 72 5c 6e 2b  RepoCksum);\r\n+
0370: 5c 73 5c 73 69 66 28 5c 73 70 50 61 72 65 6e 74  \s\sif(\spParent
0380: 2d 3e 7a 52 65 70 6f 43 6b 73 75 6d 5c 73 29 7b  ->zRepoCksum\s){
0390: 5c 72 5c 6e 2b 5c 73 5c 73 5c 73 5c 73 62 6c 6f  \r\n+\s\s\s\sblo
03a0: 62 5f 61 70 70 65 6e 64 66 28 26 62 72 61 6e 63  b_appendf(&branc
03b0: 68 2c 5c 73 22 52 5c 73 25 73 5c 5c 6e 22 2c 5c  h,\s"R\s%s\\n",\
03c0: 73 70 50 61 72 65 6e 74 2d 3e 7a 52 65 70 6f 43  spParent->zRepoC
03d0: 6b 73 75 6d 29 3b 5c 72 5c 6e 2b 5c 73 5c 73 7d  ksum);\r\n+\s\s}
03e0: 5c 72 5c 6e 5c 73 5c 73 5c 73 6d 61 6e 69 66 65  \r\n\s\s\smanife
03f0: 73 74 5f 64 65 73 74 72 6f 79 28 70 50 61 72 65  st_destroy(pPare
0400: 6e 74 29 3b 5c 72 5c 6e 5c 73 5c 72 5c 6e 5c 73  nt);\r\n\s\r\n\s
0410: 5c 73 5c 73 2f 2a 5c 73 41 64 64 5c 73 74 68 65  \s\s/*\sAdd\sthe
0420: 5c 73 73 79 6d 62 6f 6c 69 63 5c 73 62 72 61 6e  \ssymbolic\sbran
0430: 63 68 5c 73 6e 61 6d 65 5c 73 61 6e 64 5c 73 74  ch\sname\sand\st
0440: 68 65 5c 73 22 62 72 61 6e 63 68 22 5c 73 74 61  he\s"branch"\sta
0450: 67 5c 73 74 6f 5c 73 69 64 65 6e 74 69 66 79 5c  g\sto\sidentify\
0460: 72 5c 6e 5c 73 5c 73 5c 73 2a 2a 5c 73 74 68 69  r\n\s\s\s**\sthi
0470: 73 5c 73 61 73 5c 73 61 5c 73 6e 65 77 5c 73 62  s\sas\sa\snew\sb
0480: 72 61 6e 63 68 5c 73 2a 2f 5c 72 5c 6e 5c 73 5c  ranch\s*/\r\n\s\
0490: 73 5c 73 69 66 28 5c 73 7a 43 6f 6c 6f 72 21 3d  s\sif(\szColor!=
04a0: 30 5c 73 29 7b 5c 72 5c 6e 3c 2f 76 65 72 62 61  0\s){\r\n</verba
04b0: 74 69 6d 3e 0a 4a 20 70 72 69 76 61 74 65 5f 63  tim>.J private_c
04c0: 6f 6e 74 61 63 74 20 30 35 66 36 35 32 64 62 37  ontact 05f652db7
04d0: 34 34 32 36 36 37 35 39 62 32 30 64 32 34 38 65  44266759b20d248e
04e0: 63 32 66 34 35 31 36 32 39 34 32 30 33 38 38 0a  c2f451629420388.
04f0: 4a 20 73 65 76 65 72 69 74 79 20 49 6d 70 6f 72  J severity Impor
0500: 74 61 6e 74 0a 4a 20 73 74 61 74 75 73 20 4f 70  tant.J status Op
0510: 65 6e 0a 4a 20 74 69 74 6c 65 20 45 72 72 6f 72  en.J title Error
0520: 5c 73 77 68 65 6e 5c 73 63 72 65 61 74 69 6e 67  \swhen\screating
0530: 5c 73 61 5c 73 62 72 61 6e 63 68 5c 73 66 72 6f  \sa\sbranch\sfro
0540: 6d 5c 73 63 68 65 63 6b 69 6e 5c 73 74 68 61 74  m\scheckin\sthat
0550: 5c 73 64 6f 65 73 6e 27 74 5c 73 68 61 76 65 5c  \sdoesn't\shave\
0560: 73 63 68 65 63 6b 73 75 6d 5c 73 69 6e 5c 73 6d  schecksum\sin\sm
0570: 61 6e 69 66 65 73 74 0a 4a 20 74 79 70 65 20 43  anifest.J type C
0580: 6f 64 65 5f 44 65 66 65 63 74 0a 4b 20 33 62 66  ode_Defect.K 3bf
0590: 66 66 36 65 30 33 62 63 63 35 66 31 34 63 62 64  ff6e03bcc5f14cbd
05a0: 30 34 32 38 63 64 37 39 36 61 30 64 31 30 39 62  0428cd796a0d109b
05b0: 35 61 65 31 37 0a 55 20 64 6d 69 74 72 79 0a 5a  5ae17.U dmitry.Z
05c0: 20 65 61 62 66 62 63 39 36 33 36 63 34 34 36 65   eabfbc9636c446e
05d0: 30 32 34 36 35 65 34 65 39 65 32 39 33 39 33 39  02465e4e9e293939
05e0: 37 0a                                            7.