Fossil

Check-in [d4c6f3c4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Check for explicit error condition from ticket_put() because otherwise Fossil thinks a successful ticket add is an error and outputs an empty line.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d4c6f3c439e369e09996055d3be2afec8964bbc991b857a98a7beba5fd4e3cb9
User & Date: andybradford 2018-01-01 00:57:47.146
Context
2018-01-01
18:52
Disable the the --max-latency option on "fossil server" on windows, as it has always been a no-op there. ... (check-in: 6b5cfc86 user: drh tags: trunk)
00:57
Check for explicit error condition from ticket_put() because otherwise Fossil thinks a successful ticket add is an error and outputs an empty line. ... (check-in: d4c6f3c4 user: andybradford tags: trunk)
2017-12-28
21:52
Updated the Xekri skin to work with the recent Timeline changes. ... (check-in: c105c2fd user: zakero tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/tkt.c.
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
                       aField[i].zName, strlen(zValue), zValue);
        }
      }
      blob_appendf(&tktchng, "K %s\n", zTktUuid);
      blob_appendf(&tktchng, "U %F\n", zUser);
      md5sum_blob(&tktchng, &cksum);
      blob_appendf(&tktchng, "Z %b\n", &cksum);
      if( ticket_put(&tktchng, zTktUuid, ticket_need_moderation(1)) ){
        fossil_fatal("%s", g.zErrMsg);
      }else{
        fossil_print("ticket %s succeeded for %s\n",
             (eCmd==set?"set":"add"),zTktUuid);
      }
    }
  }







|







1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
                       aField[i].zName, strlen(zValue), zValue);
        }
      }
      blob_appendf(&tktchng, "K %s\n", zTktUuid);
      blob_appendf(&tktchng, "U %F\n", zUser);
      md5sum_blob(&tktchng, &cksum);
      blob_appendf(&tktchng, "Z %b\n", &cksum);
      if( ticket_put(&tktchng, zTktUuid, ticket_need_moderation(1))==0 ){
        fossil_fatal("%s", g.zErrMsg);
      }else{
        fossil_print("ticket %s succeeded for %s\n",
             (eCmd==set?"set":"add"),zTktUuid);
      }
    }
  }