Fossil

Check-in [ecb70535]
Login

Check-in [ecb70535]

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

Overview
Comment:Corrected wiki crosslinking's check for an older version of the page, as detailed in dfd85f0b00. Rebuild is required to correct wiki timeline entries.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ecb705359a58ac322b53cfe1a9821a2644f9e22bda3a076b865d71352787057f
User & Date: stephan 2021-02-22 03:09:02
References
2021-02-22
04:35
As a safety precaution against changes made in [ecb705359a] and [b8c1d429cb], content_deltify() now explicitly checks whether its main input RID refers to a phantom and skips further work if it is. ... (check-in: 188ffef2 user: stephan tags: trunk)
03:33
Technote counterpart fix of [ecb705359a]. ... (check-in: b8c1d429 user: stephan tags: trunk)
Context
2021-02-22
03:33
Technote counterpart fix of [ecb705359a]. ... (check-in: b8c1d429 user: stephan tags: trunk)
03:09
Corrected wiki crosslinking's check for an older version of the page, as detailed in dfd85f0b00. Rebuild is required to correct wiki timeline entries. ... (check-in: ecb70535 user: stephan tags: trunk)
2021-02-21
13:10
Add optimization level flag for MSVC builds, defaulting to /Os. ... (check-in: c72edfd8 user: danield tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/manifest.c.

2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440

2441
2442
2443
2444
2445
2446
2447
    }
    if( parentid ){
      tag_propagate_all(parentid);
    }
  }
  if( p->type==CFTYPE_WIKI ){
    char *zTag = mprintf("wiki-%s", p->zWikiTitle);
    int tagid = tag_findid(zTag, 1);
    int prior;
    char cPrefix;
    int nWiki;
    char zLength[40];

    while( fossil_isspace(p->zWiki[0]) ) p->zWiki++;
    nWiki = strlen(p->zWiki);
    sqlite3_snprintf(sizeof(zLength), zLength, "%d", nWiki);
    tag_insert(zTag, 1, zLength, rid, p->rDate, rid);
    fossil_free(zTag);
    prior = db_int(0,
      "SELECT rid FROM tagxref"
      " WHERE tagid=%d AND mtime<%.17g"
      " ORDER BY mtime DESC",
      tagid, p->rDate
    );

    if( prior ){
      content_deltify(prior, &rid, 1, 0);
    }
    if( nWiki<=0 ){
      cPrefix = '-';
    }else if( !prior ){
      cPrefix = '+';







<
|









<
<
<
<
|
|
>







2417
2418
2419
2420
2421
2422
2423

2424
2425
2426
2427
2428
2429
2430
2431
2432
2433




2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
    }
    if( parentid ){
      tag_propagate_all(parentid);
    }
  }
  if( p->type==CFTYPE_WIKI ){
    char *zTag = mprintf("wiki-%s", p->zWikiTitle);

    int prior = 0;
    char cPrefix;
    int nWiki;
    char zLength[40];

    while( fossil_isspace(p->zWiki[0]) ) p->zWiki++;
    nWiki = strlen(p->zWiki);
    sqlite3_snprintf(sizeof(zLength), zLength, "%d", nWiki);
    tag_insert(zTag, 1, zLength, rid, p->rDate, rid);
    fossil_free(zTag);




    if(p->nParent){
      prior = fast_uuid_to_rid(p->azParent[0]);
    }
    if( prior ){
      content_deltify(prior, &rid, 1, 0);
    }
    if( nWiki<=0 ){
      cPrefix = '-';
    }else if( !prior ){
      cPrefix = '+';