Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | This is the correct fix for the blog-timeline problem. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
9b26d1e9a2ada29fb98a0ea3623c8832 |
User & Date: | drh 2011-05-13 15:25:34.854 |
References
2011-05-13
| ||
16:08 | • Ticket [2ee15930] Error in timeline (armv5tel-linux) showing events status still Open with 1 other change ... (artifact: 7a713b72 user: viriketo) | |
Context
2011-05-15
| ||
11:19 | Tweaks to the "divider" display in the www timeline. ... (check-in: ec093ff2 user: drh tags: trunk) | |
2011-05-13
| ||
15:25 | This is the correct fix for the blog-timeline problem. ... (check-in: 9b26d1e9 user: drh tags: trunk) | |
15:14 | Yet another fix for the blob-timeline problem. The previous two did not quite finish the job. ... (check-in: bc37d1c5 user: drh tags: trunk) | |
Changes
Changes to src/manifest.c.
︙ | ︙ | |||
1694 1695 1696 1697 1698 1699 1700 | TAG_COMMENT, rid ); free(zComment); } if( p->type==CFTYPE_EVENT ){ char *zTag = mprintf("event-%s", p->zEventId); int tagid = tag_findid(zTag, 1); | | > > > > > > > > > > > > > > > > > > | 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 | TAG_COMMENT, rid ); free(zComment); } if( p->type==CFTYPE_EVENT ){ char *zTag = mprintf("event-%s", p->zEventId); int tagid = tag_findid(zTag, 1); int prior, subsequent; 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); free(zTag); prior = db_int(0, "SELECT rid FROM tagxref" " WHERE tagid=%d AND mtime<%.17g AND rid!=%d" " ORDER BY mtime DESC", tagid, p->rDate, rid ); subsequent = db_int(0, "SELECT rid FROM tagxref" " WHERE tagid=%d AND mtime>=%.17g AND rid!=%d" " ORDER BY mtime", tagid, p->rDate, rid ); if( prior ){ content_deltify(prior, rid, 0); if( !subsequent ){ db_multi_exec( "DELETE FROM event" " WHERE type='e'" " AND tagid=%d" " AND objid IN (SELECT rid FROM tagxref WHERE tagid=%d)", tagid, tagid ); } } if( subsequent ){ content_deltify(rid, subsequent, 0); }else{ db_multi_exec( "REPLACE INTO event(type,mtime,objid,tagid,user,comment,bgcolor)" "VALUES('e',%.17g,%d,%d,%Q,%Q," " (SELECT value FROM tagxref WHERE tagid=%d AND rid=%d));", |
︙ | ︙ |