Fossil

Check-in [81b76085]
Login

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

Overview
Comment:Fix error when displaying timeline of single branch. Reported on ML
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 81b76085e52ad86ee4e6770b1bd517c6abae6857
User & Date: baruch 2016-03-15 10:20:53
Context
2016-03-15
14:02
Minor improvements to the new docs. check-in: 2e2e13b9 user: mistachkin tags: trunk
10:20
Fix error when displaying timeline of single branch. Reported on ML check-in: 81b76085 user: baruch tags: trunk
2016-03-13
21:08
Fix two issues with Older/Newer buttons at timeline edges. check-in: f7c19ec0 user: rberteig tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/timeline.c.

  1754   1754         zDate = db_text(0, "SELECT min(timestamp) FROM timeline /*scan*/");
  1755   1755         if( (!zDate || !zDate[0]) && ( zAfter || zBefore ) ){
  1756   1756           zDate = mprintf("%s", (zAfter ? zAfter : zBefore));
  1757   1757         }
  1758   1758         if( zDate ){
  1759   1759           rDate = symbolic_name_to_mtime(zDate);
  1760   1760           if( db_int(0,
  1761         -            "SELECT EXISTS (SELECT 1 FROM event WHERE mtime<=%.17g%s)",
         1761  +            "SELECT EXISTS (SELECT 1 FROM event CROSS JOIN blob"
         1762  +            " WHERE blob.rid=event.objid AND mtime<=%.17g%s)",
  1762   1763               rDate-ONE_SECOND, blob_sql_text(&cond))
  1763   1764           ){
  1764   1765             timeline_submenu(&url, "Older", "b", zDate, "a");
  1765   1766             zOlderButton = fossil_strdup(url_render(&url, "b", zDate, "a", 0));
  1766   1767           }
  1767   1768           free(zDate);
  1768   1769         }
................................................................................
  1769   1770         zDate = db_text(0, "SELECT max(timestamp) FROM timeline /*scan*/");
  1770   1771         if( (!zDate || !zDate[0]) && ( zAfter || zBefore ) ){
  1771   1772           zDate = mprintf("%s", (zBefore ? zBefore : zAfter));
  1772   1773         }
  1773   1774         if( zDate ){
  1774   1775           rDate = symbolic_name_to_mtime(zDate);
  1775   1776           if( db_int(0,
  1776         -            "SELECT EXISTS (SELECT 1 FROM event WHERE mtime>=%.17g%s)",
         1777  +            "SELECT EXISTS (SELECT 1 FROM event CROSS JOIN blob"
         1778  +            " WHERE blob.rid=event.objid AND mtime>=%.17g%s)",
  1777   1779               rDate+ONE_SECOND, blob_sql_text(&cond))
  1778   1780           ){
  1779   1781             timeline_submenu(&url, "Newer", "a", zDate, "b");
  1780   1782           }
  1781   1783           free(zDate);
  1782   1784         }
  1783   1785         if( zType[0]=='a' || zType[0]=='c' ){