Fossil SCM
Merging what I had at [61523cbe67] over trunk related to href targets.
Commit
d5129ae101354e72402188017b8488223c7589fa
Parent
6b7ddfefbfb871f…
6 files changed
+1
+1
+9
-4
+9
-4
+6
-3
+6
-3
M
src/db.c
+1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1855,10 +1855,11 @@ | ||
| 1855 | 1855 | { "gdiff-command", 0, 16, 0, "gdiff" }, |
| 1856 | 1856 | { "gmerge-command",0, 40, 0, "" }, |
| 1857 | 1857 | { "https-login", 0, 0, 0, "off" }, |
| 1858 | 1858 | { "ignore-glob", 0, 40, 1, "" }, |
| 1859 | 1859 | { "empty-dirs", 0, 40, 1, "" }, |
| 1860 | + { "href-targets", 0, 0, 0, "on" }, | |
| 1860 | 1861 | { "http-port", 0, 16, 0, "8080" }, |
| 1861 | 1862 | { "localauth", 0, 0, 0, "off" }, |
| 1862 | 1863 | { "main-branch", 0, 40, 0, "trunk" }, |
| 1863 | 1864 | { "manifest", 0, 0, 1, "off" }, |
| 1864 | 1865 | { "max-upload", 0, 25, 0, "250000" }, |
| 1865 | 1866 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1855,10 +1855,11 @@ | |
| 1855 | { "gdiff-command", 0, 16, 0, "gdiff" }, |
| 1856 | { "gmerge-command",0, 40, 0, "" }, |
| 1857 | { "https-login", 0, 0, 0, "off" }, |
| 1858 | { "ignore-glob", 0, 40, 1, "" }, |
| 1859 | { "empty-dirs", 0, 40, 1, "" }, |
| 1860 | { "http-port", 0, 16, 0, "8080" }, |
| 1861 | { "localauth", 0, 0, 0, "off" }, |
| 1862 | { "main-branch", 0, 40, 0, "trunk" }, |
| 1863 | { "manifest", 0, 0, 1, "off" }, |
| 1864 | { "max-upload", 0, 25, 0, "250000" }, |
| 1865 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1855,10 +1855,11 @@ | |
| 1855 | { "gdiff-command", 0, 16, 0, "gdiff" }, |
| 1856 | { "gmerge-command",0, 40, 0, "" }, |
| 1857 | { "https-login", 0, 0, 0, "off" }, |
| 1858 | { "ignore-glob", 0, 40, 1, "" }, |
| 1859 | { "empty-dirs", 0, 40, 1, "" }, |
| 1860 | { "href-targets", 0, 0, 0, "on" }, |
| 1861 | { "http-port", 0, 16, 0, "8080" }, |
| 1862 | { "localauth", 0, 0, 0, "off" }, |
| 1863 | { "main-branch", 0, 40, 0, "trunk" }, |
| 1864 | { "manifest", 0, 0, 1, "off" }, |
| 1865 | { "max-upload", 0, 25, 0, "250000" }, |
| 1866 |
M
src/db.c
+1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1855,10 +1855,11 @@ | ||
| 1855 | 1855 | { "gdiff-command", 0, 16, 0, "gdiff" }, |
| 1856 | 1856 | { "gmerge-command",0, 40, 0, "" }, |
| 1857 | 1857 | { "https-login", 0, 0, 0, "off" }, |
| 1858 | 1858 | { "ignore-glob", 0, 40, 1, "" }, |
| 1859 | 1859 | { "empty-dirs", 0, 40, 1, "" }, |
| 1860 | + { "href-targets", 0, 0, 0, "on" }, | |
| 1860 | 1861 | { "http-port", 0, 16, 0, "8080" }, |
| 1861 | 1862 | { "localauth", 0, 0, 0, "off" }, |
| 1862 | 1863 | { "main-branch", 0, 40, 0, "trunk" }, |
| 1863 | 1864 | { "manifest", 0, 0, 1, "off" }, |
| 1864 | 1865 | { "max-upload", 0, 25, 0, "250000" }, |
| 1865 | 1866 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1855,10 +1855,11 @@ | |
| 1855 | { "gdiff-command", 0, 16, 0, "gdiff" }, |
| 1856 | { "gmerge-command",0, 40, 0, "" }, |
| 1857 | { "https-login", 0, 0, 0, "off" }, |
| 1858 | { "ignore-glob", 0, 40, 1, "" }, |
| 1859 | { "empty-dirs", 0, 40, 1, "" }, |
| 1860 | { "http-port", 0, 16, 0, "8080" }, |
| 1861 | { "localauth", 0, 0, 0, "off" }, |
| 1862 | { "main-branch", 0, 40, 0, "trunk" }, |
| 1863 | { "manifest", 0, 0, 1, "off" }, |
| 1864 | { "max-upload", 0, 25, 0, "250000" }, |
| 1865 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1855,10 +1855,11 @@ | |
| 1855 | { "gdiff-command", 0, 16, 0, "gdiff" }, |
| 1856 | { "gmerge-command",0, 40, 0, "" }, |
| 1857 | { "https-login", 0, 0, 0, "off" }, |
| 1858 | { "ignore-glob", 0, 40, 1, "" }, |
| 1859 | { "empty-dirs", 0, 40, 1, "" }, |
| 1860 | { "href-targets", 0, 0, 0, "on" }, |
| 1861 | { "http-port", 0, 16, 0, "8080" }, |
| 1862 | { "localauth", 0, 0, 0, "off" }, |
| 1863 | { "main-branch", 0, 40, 0, "trunk" }, |
| 1864 | { "manifest", 0, 0, 1, "off" }, |
| 1865 | { "max-upload", 0, 25, 0, "250000" }, |
| 1866 |
+9
-4
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -1740,10 +1740,15 @@ | ||
| 1740 | 1740 | Blob toAnnotate; /* Text of the final (mid) version of the file */ |
| 1741 | 1741 | Blob step; /* Text of previous revision */ |
| 1742 | 1742 | int rid; /* Artifact ID of the file being annotated */ |
| 1743 | 1743 | char *zLabel; /* Label to apply to a line */ |
| 1744 | 1744 | Stmt q; /* Query returning all ancestor versions */ |
| 1745 | + const char *zInfoTarget; /* String for target info window */ | |
| 1746 | + const char *zDiffTarget; /* String for target diff window */ | |
| 1747 | + | |
| 1748 | + zInfoTarget = db_get_boolean("href-targets", 1) ? "target='infowindow'" : ""; | |
| 1749 | + zDiffTarget = db_get_boolean("href-targets", 1) ? "target='diffwindow'" : ""; | |
| 1745 | 1750 | |
| 1746 | 1751 | /* Initialize the annotation */ |
| 1747 | 1752 | rid = db_int(0, "SELECT fid FROM mlink WHERE mid=%d AND fnid=%d",mid,fnid); |
| 1748 | 1753 | if( rid==0 ){ |
| 1749 | 1754 | fossil_panic("file #%d is unchanged in manifest #%d", fnid, mid); |
| @@ -1780,15 +1785,15 @@ | ||
| 1780 | 1785 | const char *zUuidParentFile = db_column_text(&q, 3); |
| 1781 | 1786 | const char *zDate = db_column_text(&q, 4); |
| 1782 | 1787 | const char *zUser = db_column_text(&q, 5); |
| 1783 | 1788 | if( webLabel ){ |
| 1784 | 1789 | zLabel = mprintf( |
| 1785 | - "<a href='%s/info/%s' target='infowindow'>%.10s</a> " | |
| 1786 | - "<a href='%s/fdiff?v1=%s&v2=%s' target='diffwindow'>d</a> " | |
| 1790 | + "<a href='%s/info/%s' %s>%.10s</a> " | |
| 1791 | + "<a href='%s/fdiff?v1=%s&v2=%s' %s>d</a> " | |
| 1787 | 1792 | "%s %9.9s", |
| 1788 | - g.zTop, zUuid, zUuid, | |
| 1789 | - g.zTop, zUuidParentFile, zUuidFile, | |
| 1793 | + g.zTop, zUuid, zInfoTarget, zUuid, | |
| 1794 | + g.zTop, zUuidParentFile, zUuidFile, zDiffTarget, | |
| 1790 | 1795 | zDate, zUser); |
| 1791 | 1796 | }else{ |
| 1792 | 1797 | zLabel = mprintf("%.10s %s %9.9s", zUuid, zDate, zUser); |
| 1793 | 1798 | } |
| 1794 | 1799 | p->nVers++; |
| 1795 | 1800 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -1740,10 +1740,15 @@ | |
| 1740 | Blob toAnnotate; /* Text of the final (mid) version of the file */ |
| 1741 | Blob step; /* Text of previous revision */ |
| 1742 | int rid; /* Artifact ID of the file being annotated */ |
| 1743 | char *zLabel; /* Label to apply to a line */ |
| 1744 | Stmt q; /* Query returning all ancestor versions */ |
| 1745 | |
| 1746 | /* Initialize the annotation */ |
| 1747 | rid = db_int(0, "SELECT fid FROM mlink WHERE mid=%d AND fnid=%d",mid,fnid); |
| 1748 | if( rid==0 ){ |
| 1749 | fossil_panic("file #%d is unchanged in manifest #%d", fnid, mid); |
| @@ -1780,15 +1785,15 @@ | |
| 1780 | const char *zUuidParentFile = db_column_text(&q, 3); |
| 1781 | const char *zDate = db_column_text(&q, 4); |
| 1782 | const char *zUser = db_column_text(&q, 5); |
| 1783 | if( webLabel ){ |
| 1784 | zLabel = mprintf( |
| 1785 | "<a href='%s/info/%s' target='infowindow'>%.10s</a> " |
| 1786 | "<a href='%s/fdiff?v1=%s&v2=%s' target='diffwindow'>d</a> " |
| 1787 | "%s %9.9s", |
| 1788 | g.zTop, zUuid, zUuid, |
| 1789 | g.zTop, zUuidParentFile, zUuidFile, |
| 1790 | zDate, zUser); |
| 1791 | }else{ |
| 1792 | zLabel = mprintf("%.10s %s %9.9s", zUuid, zDate, zUser); |
| 1793 | } |
| 1794 | p->nVers++; |
| 1795 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -1740,10 +1740,15 @@ | |
| 1740 | Blob toAnnotate; /* Text of the final (mid) version of the file */ |
| 1741 | Blob step; /* Text of previous revision */ |
| 1742 | int rid; /* Artifact ID of the file being annotated */ |
| 1743 | char *zLabel; /* Label to apply to a line */ |
| 1744 | Stmt q; /* Query returning all ancestor versions */ |
| 1745 | const char *zInfoTarget; /* String for target info window */ |
| 1746 | const char *zDiffTarget; /* String for target diff window */ |
| 1747 | |
| 1748 | zInfoTarget = db_get_boolean("href-targets", 1) ? "target='infowindow'" : ""; |
| 1749 | zDiffTarget = db_get_boolean("href-targets", 1) ? "target='diffwindow'" : ""; |
| 1750 | |
| 1751 | /* Initialize the annotation */ |
| 1752 | rid = db_int(0, "SELECT fid FROM mlink WHERE mid=%d AND fnid=%d",mid,fnid); |
| 1753 | if( rid==0 ){ |
| 1754 | fossil_panic("file #%d is unchanged in manifest #%d", fnid, mid); |
| @@ -1780,15 +1785,15 @@ | |
| 1785 | const char *zUuidParentFile = db_column_text(&q, 3); |
| 1786 | const char *zDate = db_column_text(&q, 4); |
| 1787 | const char *zUser = db_column_text(&q, 5); |
| 1788 | if( webLabel ){ |
| 1789 | zLabel = mprintf( |
| 1790 | "<a href='%s/info/%s' %s>%.10s</a> " |
| 1791 | "<a href='%s/fdiff?v1=%s&v2=%s' %s>d</a> " |
| 1792 | "%s %9.9s", |
| 1793 | g.zTop, zUuid, zInfoTarget, zUuid, |
| 1794 | g.zTop, zUuidParentFile, zUuidFile, zDiffTarget, |
| 1795 | zDate, zUser); |
| 1796 | }else{ |
| 1797 | zLabel = mprintf("%.10s %s %9.9s", zUuid, zDate, zUser); |
| 1798 | } |
| 1799 | p->nVers++; |
| 1800 |
+9
-4
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -1740,10 +1740,15 @@ | ||
| 1740 | 1740 | Blob toAnnotate; /* Text of the final (mid) version of the file */ |
| 1741 | 1741 | Blob step; /* Text of previous revision */ |
| 1742 | 1742 | int rid; /* Artifact ID of the file being annotated */ |
| 1743 | 1743 | char *zLabel; /* Label to apply to a line */ |
| 1744 | 1744 | Stmt q; /* Query returning all ancestor versions */ |
| 1745 | + const char *zInfoTarget; /* String for target info window */ | |
| 1746 | + const char *zDiffTarget; /* String for target diff window */ | |
| 1747 | + | |
| 1748 | + zInfoTarget = db_get_boolean("href-targets", 1) ? "target='infowindow'" : ""; | |
| 1749 | + zDiffTarget = db_get_boolean("href-targets", 1) ? "target='diffwindow'" : ""; | |
| 1745 | 1750 | |
| 1746 | 1751 | /* Initialize the annotation */ |
| 1747 | 1752 | rid = db_int(0, "SELECT fid FROM mlink WHERE mid=%d AND fnid=%d",mid,fnid); |
| 1748 | 1753 | if( rid==0 ){ |
| 1749 | 1754 | fossil_panic("file #%d is unchanged in manifest #%d", fnid, mid); |
| @@ -1780,15 +1785,15 @@ | ||
| 1780 | 1785 | const char *zUuidParentFile = db_column_text(&q, 3); |
| 1781 | 1786 | const char *zDate = db_column_text(&q, 4); |
| 1782 | 1787 | const char *zUser = db_column_text(&q, 5); |
| 1783 | 1788 | if( webLabel ){ |
| 1784 | 1789 | zLabel = mprintf( |
| 1785 | - "<a href='%s/info/%s' target='infowindow'>%.10s</a> " | |
| 1786 | - "<a href='%s/fdiff?v1=%s&v2=%s' target='diffwindow'>d</a> " | |
| 1790 | + "<a href='%s/info/%s' %s>%.10s</a> " | |
| 1791 | + "<a href='%s/fdiff?v1=%s&v2=%s' %s>d</a> " | |
| 1787 | 1792 | "%s %9.9s", |
| 1788 | - g.zTop, zUuid, zUuid, | |
| 1789 | - g.zTop, zUuidParentFile, zUuidFile, | |
| 1793 | + g.zTop, zUuid, zInfoTarget, zUuid, | |
| 1794 | + g.zTop, zUuidParentFile, zUuidFile, zDiffTarget, | |
| 1790 | 1795 | zDate, zUser); |
| 1791 | 1796 | }else{ |
| 1792 | 1797 | zLabel = mprintf("%.10s %s %9.9s", zUuid, zDate, zUser); |
| 1793 | 1798 | } |
| 1794 | 1799 | p->nVers++; |
| 1795 | 1800 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -1740,10 +1740,15 @@ | |
| 1740 | Blob toAnnotate; /* Text of the final (mid) version of the file */ |
| 1741 | Blob step; /* Text of previous revision */ |
| 1742 | int rid; /* Artifact ID of the file being annotated */ |
| 1743 | char *zLabel; /* Label to apply to a line */ |
| 1744 | Stmt q; /* Query returning all ancestor versions */ |
| 1745 | |
| 1746 | /* Initialize the annotation */ |
| 1747 | rid = db_int(0, "SELECT fid FROM mlink WHERE mid=%d AND fnid=%d",mid,fnid); |
| 1748 | if( rid==0 ){ |
| 1749 | fossil_panic("file #%d is unchanged in manifest #%d", fnid, mid); |
| @@ -1780,15 +1785,15 @@ | |
| 1780 | const char *zUuidParentFile = db_column_text(&q, 3); |
| 1781 | const char *zDate = db_column_text(&q, 4); |
| 1782 | const char *zUser = db_column_text(&q, 5); |
| 1783 | if( webLabel ){ |
| 1784 | zLabel = mprintf( |
| 1785 | "<a href='%s/info/%s' target='infowindow'>%.10s</a> " |
| 1786 | "<a href='%s/fdiff?v1=%s&v2=%s' target='diffwindow'>d</a> " |
| 1787 | "%s %9.9s", |
| 1788 | g.zTop, zUuid, zUuid, |
| 1789 | g.zTop, zUuidParentFile, zUuidFile, |
| 1790 | zDate, zUser); |
| 1791 | }else{ |
| 1792 | zLabel = mprintf("%.10s %s %9.9s", zUuid, zDate, zUser); |
| 1793 | } |
| 1794 | p->nVers++; |
| 1795 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -1740,10 +1740,15 @@ | |
| 1740 | Blob toAnnotate; /* Text of the final (mid) version of the file */ |
| 1741 | Blob step; /* Text of previous revision */ |
| 1742 | int rid; /* Artifact ID of the file being annotated */ |
| 1743 | char *zLabel; /* Label to apply to a line */ |
| 1744 | Stmt q; /* Query returning all ancestor versions */ |
| 1745 | const char *zInfoTarget; /* String for target info window */ |
| 1746 | const char *zDiffTarget; /* String for target diff window */ |
| 1747 | |
| 1748 | zInfoTarget = db_get_boolean("href-targets", 1) ? "target='infowindow'" : ""; |
| 1749 | zDiffTarget = db_get_boolean("href-targets", 1) ? "target='diffwindow'" : ""; |
| 1750 | |
| 1751 | /* Initialize the annotation */ |
| 1752 | rid = db_int(0, "SELECT fid FROM mlink WHERE mid=%d AND fnid=%d",mid,fnid); |
| 1753 | if( rid==0 ){ |
| 1754 | fossil_panic("file #%d is unchanged in manifest #%d", fnid, mid); |
| @@ -1780,15 +1785,15 @@ | |
| 1785 | const char *zUuidParentFile = db_column_text(&q, 3); |
| 1786 | const char *zDate = db_column_text(&q, 4); |
| 1787 | const char *zUser = db_column_text(&q, 5); |
| 1788 | if( webLabel ){ |
| 1789 | zLabel = mprintf( |
| 1790 | "<a href='%s/info/%s' %s>%.10s</a> " |
| 1791 | "<a href='%s/fdiff?v1=%s&v2=%s' %s>d</a> " |
| 1792 | "%s %9.9s", |
| 1793 | g.zTop, zUuid, zInfoTarget, zUuid, |
| 1794 | g.zTop, zUuidParentFile, zUuidFile, zDiffTarget, |
| 1795 | zDate, zUser); |
| 1796 | }else{ |
| 1797 | zLabel = mprintf("%.10s %s %9.9s", zUuid, zDate, zUser); |
| 1798 | } |
| 1799 | p->nVers++; |
| 1800 |
+6
-3
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -205,18 +205,21 @@ | ||
| 205 | 205 | GraphContext *pGraph = 0; |
| 206 | 206 | int prevWasDivider = 0; /* True if previous output row was <hr> */ |
| 207 | 207 | int fchngQueryInit = 0; /* True if fchngQuery is initialized */ |
| 208 | 208 | Stmt fchngQuery; /* Query for file changes on check-ins */ |
| 209 | 209 | static Stmt qbranch; |
| 210 | + const char *zDiffTarget; /* String for the target diff window */ | |
| 210 | 211 | |
| 211 | 212 | zPrevDate[0] = 0; |
| 212 | 213 | mxWikiLen = db_get_int("timeline-max-comment", 0); |
| 213 | 214 | if( db_get_boolean("timeline-block-markup", 0) ){ |
| 214 | 215 | wikiFlags = WIKI_INLINE; |
| 215 | 216 | }else{ |
| 216 | 217 | wikiFlags = WIKI_INLINE | WIKI_NOBLOCK; |
| 217 | 218 | } |
| 219 | + zDiffTarget = db_get_boolean("href-targets", 1) ? | |
| 220 | + "target=\"diffwindow\"": ""; | |
| 218 | 221 | if( tmFlags & TIMELINE_GRAPH ){ |
| 219 | 222 | pGraph = graph_init(); |
| 220 | 223 | /* style is not moved to css, because this is |
| 221 | 224 | ** a technical div for the timeline graph |
| 222 | 225 | */ |
| @@ -437,25 +440,25 @@ | ||
| 437 | 440 | inUl = 1; |
| 438 | 441 | } |
| 439 | 442 | if( isNew ){ |
| 440 | 443 | @ <li> %h(zFilename) (new file) |
| 441 | 444 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 442 | - @ target="diffwindow">[view]</a></li> | |
| 445 | + @ %s(zDiffTarget)>[view]</a></li> | |
| 443 | 446 | }else if( isDel ){ |
| 444 | 447 | @ <li> %h(zFilename) (deleted)</li> |
| 445 | 448 | }else if( fossil_strcmp(zOld,zNew)==0 && zOldName!=0 ){ |
| 446 | 449 | @ <li> %h(zOldName) → %h(zFilename) |
| 447 | 450 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 448 | - @ target="diffwindow">[view]</a></li> | |
| 451 | + @ %s(zDiffTarget)>[view]</a></li> | |
| 449 | 452 | }else{ |
| 450 | 453 | if( zOldName!=0 ){ |
| 451 | 454 | @ <li> %h(zOldName) → %h(zFilename) |
| 452 | 455 | }else{ |
| 453 | 456 | @ <li> %h(zFilename) |
| 454 | 457 | } |
| 455 | 458 | @ <a href="%s(g.zTop)/fdiff?v1=%S(zOld)&v2=%S(zNew)" |
| 456 | - @ target="diffwindow">[diff]</a></li> | |
| 459 | + @ %s(zDiffTarget)>[diff]</a></li> | |
| 457 | 460 | } |
| 458 | 461 | } |
| 459 | 462 | db_reset(&fchngQuery); |
| 460 | 463 | if( inUl ){ |
| 461 | 464 | @ </ul> |
| 462 | 465 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -205,18 +205,21 @@ | |
| 205 | GraphContext *pGraph = 0; |
| 206 | int prevWasDivider = 0; /* True if previous output row was <hr> */ |
| 207 | int fchngQueryInit = 0; /* True if fchngQuery is initialized */ |
| 208 | Stmt fchngQuery; /* Query for file changes on check-ins */ |
| 209 | static Stmt qbranch; |
| 210 | |
| 211 | zPrevDate[0] = 0; |
| 212 | mxWikiLen = db_get_int("timeline-max-comment", 0); |
| 213 | if( db_get_boolean("timeline-block-markup", 0) ){ |
| 214 | wikiFlags = WIKI_INLINE; |
| 215 | }else{ |
| 216 | wikiFlags = WIKI_INLINE | WIKI_NOBLOCK; |
| 217 | } |
| 218 | if( tmFlags & TIMELINE_GRAPH ){ |
| 219 | pGraph = graph_init(); |
| 220 | /* style is not moved to css, because this is |
| 221 | ** a technical div for the timeline graph |
| 222 | */ |
| @@ -437,25 +440,25 @@ | |
| 437 | inUl = 1; |
| 438 | } |
| 439 | if( isNew ){ |
| 440 | @ <li> %h(zFilename) (new file) |
| 441 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 442 | @ target="diffwindow">[view]</a></li> |
| 443 | }else if( isDel ){ |
| 444 | @ <li> %h(zFilename) (deleted)</li> |
| 445 | }else if( fossil_strcmp(zOld,zNew)==0 && zOldName!=0 ){ |
| 446 | @ <li> %h(zOldName) → %h(zFilename) |
| 447 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 448 | @ target="diffwindow">[view]</a></li> |
| 449 | }else{ |
| 450 | if( zOldName!=0 ){ |
| 451 | @ <li> %h(zOldName) → %h(zFilename) |
| 452 | }else{ |
| 453 | @ <li> %h(zFilename) |
| 454 | } |
| 455 | @ <a href="%s(g.zTop)/fdiff?v1=%S(zOld)&v2=%S(zNew)" |
| 456 | @ target="diffwindow">[diff]</a></li> |
| 457 | } |
| 458 | } |
| 459 | db_reset(&fchngQuery); |
| 460 | if( inUl ){ |
| 461 | @ </ul> |
| 462 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -205,18 +205,21 @@ | |
| 205 | GraphContext *pGraph = 0; |
| 206 | int prevWasDivider = 0; /* True if previous output row was <hr> */ |
| 207 | int fchngQueryInit = 0; /* True if fchngQuery is initialized */ |
| 208 | Stmt fchngQuery; /* Query for file changes on check-ins */ |
| 209 | static Stmt qbranch; |
| 210 | const char *zDiffTarget; /* String for the target diff window */ |
| 211 | |
| 212 | zPrevDate[0] = 0; |
| 213 | mxWikiLen = db_get_int("timeline-max-comment", 0); |
| 214 | if( db_get_boolean("timeline-block-markup", 0) ){ |
| 215 | wikiFlags = WIKI_INLINE; |
| 216 | }else{ |
| 217 | wikiFlags = WIKI_INLINE | WIKI_NOBLOCK; |
| 218 | } |
| 219 | zDiffTarget = db_get_boolean("href-targets", 1) ? |
| 220 | "target=\"diffwindow\"": ""; |
| 221 | if( tmFlags & TIMELINE_GRAPH ){ |
| 222 | pGraph = graph_init(); |
| 223 | /* style is not moved to css, because this is |
| 224 | ** a technical div for the timeline graph |
| 225 | */ |
| @@ -437,25 +440,25 @@ | |
| 440 | inUl = 1; |
| 441 | } |
| 442 | if( isNew ){ |
| 443 | @ <li> %h(zFilename) (new file) |
| 444 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 445 | @ %s(zDiffTarget)>[view]</a></li> |
| 446 | }else if( isDel ){ |
| 447 | @ <li> %h(zFilename) (deleted)</li> |
| 448 | }else if( fossil_strcmp(zOld,zNew)==0 && zOldName!=0 ){ |
| 449 | @ <li> %h(zOldName) → %h(zFilename) |
| 450 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 451 | @ %s(zDiffTarget)>[view]</a></li> |
| 452 | }else{ |
| 453 | if( zOldName!=0 ){ |
| 454 | @ <li> %h(zOldName) → %h(zFilename) |
| 455 | }else{ |
| 456 | @ <li> %h(zFilename) |
| 457 | } |
| 458 | @ <a href="%s(g.zTop)/fdiff?v1=%S(zOld)&v2=%S(zNew)" |
| 459 | @ %s(zDiffTarget)>[diff]</a></li> |
| 460 | } |
| 461 | } |
| 462 | db_reset(&fchngQuery); |
| 463 | if( inUl ){ |
| 464 | @ </ul> |
| 465 |
+6
-3
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -205,18 +205,21 @@ | ||
| 205 | 205 | GraphContext *pGraph = 0; |
| 206 | 206 | int prevWasDivider = 0; /* True if previous output row was <hr> */ |
| 207 | 207 | int fchngQueryInit = 0; /* True if fchngQuery is initialized */ |
| 208 | 208 | Stmt fchngQuery; /* Query for file changes on check-ins */ |
| 209 | 209 | static Stmt qbranch; |
| 210 | + const char *zDiffTarget; /* String for the target diff window */ | |
| 210 | 211 | |
| 211 | 212 | zPrevDate[0] = 0; |
| 212 | 213 | mxWikiLen = db_get_int("timeline-max-comment", 0); |
| 213 | 214 | if( db_get_boolean("timeline-block-markup", 0) ){ |
| 214 | 215 | wikiFlags = WIKI_INLINE; |
| 215 | 216 | }else{ |
| 216 | 217 | wikiFlags = WIKI_INLINE | WIKI_NOBLOCK; |
| 217 | 218 | } |
| 219 | + zDiffTarget = db_get_boolean("href-targets", 1) ? | |
| 220 | + "target=\"diffwindow\"": ""; | |
| 218 | 221 | if( tmFlags & TIMELINE_GRAPH ){ |
| 219 | 222 | pGraph = graph_init(); |
| 220 | 223 | /* style is not moved to css, because this is |
| 221 | 224 | ** a technical div for the timeline graph |
| 222 | 225 | */ |
| @@ -437,25 +440,25 @@ | ||
| 437 | 440 | inUl = 1; |
| 438 | 441 | } |
| 439 | 442 | if( isNew ){ |
| 440 | 443 | @ <li> %h(zFilename) (new file) |
| 441 | 444 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 442 | - @ target="diffwindow">[view]</a></li> | |
| 445 | + @ %s(zDiffTarget)>[view]</a></li> | |
| 443 | 446 | }else if( isDel ){ |
| 444 | 447 | @ <li> %h(zFilename) (deleted)</li> |
| 445 | 448 | }else if( fossil_strcmp(zOld,zNew)==0 && zOldName!=0 ){ |
| 446 | 449 | @ <li> %h(zOldName) → %h(zFilename) |
| 447 | 450 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 448 | - @ target="diffwindow">[view]</a></li> | |
| 451 | + @ %s(zDiffTarget)>[view]</a></li> | |
| 449 | 452 | }else{ |
| 450 | 453 | if( zOldName!=0 ){ |
| 451 | 454 | @ <li> %h(zOldName) → %h(zFilename) |
| 452 | 455 | }else{ |
| 453 | 456 | @ <li> %h(zFilename) |
| 454 | 457 | } |
| 455 | 458 | @ <a href="%s(g.zTop)/fdiff?v1=%S(zOld)&v2=%S(zNew)" |
| 456 | - @ target="diffwindow">[diff]</a></li> | |
| 459 | + @ %s(zDiffTarget)>[diff]</a></li> | |
| 457 | 460 | } |
| 458 | 461 | } |
| 459 | 462 | db_reset(&fchngQuery); |
| 460 | 463 | if( inUl ){ |
| 461 | 464 | @ </ul> |
| 462 | 465 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -205,18 +205,21 @@ | |
| 205 | GraphContext *pGraph = 0; |
| 206 | int prevWasDivider = 0; /* True if previous output row was <hr> */ |
| 207 | int fchngQueryInit = 0; /* True if fchngQuery is initialized */ |
| 208 | Stmt fchngQuery; /* Query for file changes on check-ins */ |
| 209 | static Stmt qbranch; |
| 210 | |
| 211 | zPrevDate[0] = 0; |
| 212 | mxWikiLen = db_get_int("timeline-max-comment", 0); |
| 213 | if( db_get_boolean("timeline-block-markup", 0) ){ |
| 214 | wikiFlags = WIKI_INLINE; |
| 215 | }else{ |
| 216 | wikiFlags = WIKI_INLINE | WIKI_NOBLOCK; |
| 217 | } |
| 218 | if( tmFlags & TIMELINE_GRAPH ){ |
| 219 | pGraph = graph_init(); |
| 220 | /* style is not moved to css, because this is |
| 221 | ** a technical div for the timeline graph |
| 222 | */ |
| @@ -437,25 +440,25 @@ | |
| 437 | inUl = 1; |
| 438 | } |
| 439 | if( isNew ){ |
| 440 | @ <li> %h(zFilename) (new file) |
| 441 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 442 | @ target="diffwindow">[view]</a></li> |
| 443 | }else if( isDel ){ |
| 444 | @ <li> %h(zFilename) (deleted)</li> |
| 445 | }else if( fossil_strcmp(zOld,zNew)==0 && zOldName!=0 ){ |
| 446 | @ <li> %h(zOldName) → %h(zFilename) |
| 447 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 448 | @ target="diffwindow">[view]</a></li> |
| 449 | }else{ |
| 450 | if( zOldName!=0 ){ |
| 451 | @ <li> %h(zOldName) → %h(zFilename) |
| 452 | }else{ |
| 453 | @ <li> %h(zFilename) |
| 454 | } |
| 455 | @ <a href="%s(g.zTop)/fdiff?v1=%S(zOld)&v2=%S(zNew)" |
| 456 | @ target="diffwindow">[diff]</a></li> |
| 457 | } |
| 458 | } |
| 459 | db_reset(&fchngQuery); |
| 460 | if( inUl ){ |
| 461 | @ </ul> |
| 462 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -205,18 +205,21 @@ | |
| 205 | GraphContext *pGraph = 0; |
| 206 | int prevWasDivider = 0; /* True if previous output row was <hr> */ |
| 207 | int fchngQueryInit = 0; /* True if fchngQuery is initialized */ |
| 208 | Stmt fchngQuery; /* Query for file changes on check-ins */ |
| 209 | static Stmt qbranch; |
| 210 | const char *zDiffTarget; /* String for the target diff window */ |
| 211 | |
| 212 | zPrevDate[0] = 0; |
| 213 | mxWikiLen = db_get_int("timeline-max-comment", 0); |
| 214 | if( db_get_boolean("timeline-block-markup", 0) ){ |
| 215 | wikiFlags = WIKI_INLINE; |
| 216 | }else{ |
| 217 | wikiFlags = WIKI_INLINE | WIKI_NOBLOCK; |
| 218 | } |
| 219 | zDiffTarget = db_get_boolean("href-targets", 1) ? |
| 220 | "target=\"diffwindow\"": ""; |
| 221 | if( tmFlags & TIMELINE_GRAPH ){ |
| 222 | pGraph = graph_init(); |
| 223 | /* style is not moved to css, because this is |
| 224 | ** a technical div for the timeline graph |
| 225 | */ |
| @@ -437,25 +440,25 @@ | |
| 440 | inUl = 1; |
| 441 | } |
| 442 | if( isNew ){ |
| 443 | @ <li> %h(zFilename) (new file) |
| 444 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 445 | @ %s(zDiffTarget)>[view]</a></li> |
| 446 | }else if( isDel ){ |
| 447 | @ <li> %h(zFilename) (deleted)</li> |
| 448 | }else if( fossil_strcmp(zOld,zNew)==0 && zOldName!=0 ){ |
| 449 | @ <li> %h(zOldName) → %h(zFilename) |
| 450 | @ <a href="%s(g.zTop)/artifact/%S(zNew)" |
| 451 | @ %s(zDiffTarget)>[view]</a></li> |
| 452 | }else{ |
| 453 | if( zOldName!=0 ){ |
| 454 | @ <li> %h(zOldName) → %h(zFilename) |
| 455 | }else{ |
| 456 | @ <li> %h(zFilename) |
| 457 | } |
| 458 | @ <a href="%s(g.zTop)/fdiff?v1=%S(zOld)&v2=%S(zNew)" |
| 459 | @ %s(zDiffTarget)>[diff]</a></li> |
| 460 | } |
| 461 | } |
| 462 | db_reset(&fchngQuery); |
| 463 | if( inUl ){ |
| 464 | @ </ul> |
| 465 |