Fossil SCM
Add new tl= and rl= query parameters to /timeline
Commit
2288b74257674fce3d49654206d1adbe7a52d2c9f07ec1d38ee6280a1f2f221e
Parent
200247bc62f03ca…
1 file changed
+16
+16
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1597,10 +1597,12 @@ | ||
| 1597 | 1597 | ** ancestors of CX going back to the time of CHECKIN. |
| 1598 | 1598 | ** All qualifying check-ins are shown unless there |
| 1599 | 1599 | ** is also an n= or n1= query parameter. |
| 1600 | 1600 | ** t=TAG Show only check-ins with the given TAG |
| 1601 | 1601 | ** r=TAG Show check-ins related to TAG, equivalent to t=TAG&rel |
| 1602 | +** tl=TAGLIST Shorthand for t=TAGLIST&ms=brlist | |
| 1603 | +** rl=TAGLIST Shorthand for r=TAGLIST&ms=brlist | |
| 1602 | 1604 | ** rel Show related check-ins as well as those matching t=TAG |
| 1603 | 1605 | ** mionly Limit rel to show ancestors but not descendants |
| 1604 | 1606 | ** nowiki Do not show wiki associated with branch or tag |
| 1605 | 1607 | ** ms=MATCHSTYLE Set tag match style to EXACT, GLOB, LIKE, REGEXP |
| 1606 | 1608 | ** u=USER Only show items associated with USER |
| @@ -1832,10 +1834,24 @@ | ||
| 1832 | 1834 | " AND event.objid=mlink.mid" |
| 1833 | 1835 | " ORDER BY event.mtime LIMIT 1", |
| 1834 | 1836 | P("cf") |
| 1835 | 1837 | ); |
| 1836 | 1838 | } |
| 1839 | + | |
| 1840 | + /* Check for tl=TAGLIST and rl=TAGLIST which are abbreviations for | |
| 1841 | + ** t=TAGLIST&ms=brlist and r=TAGLIST&ms=brlist repectively. */ | |
| 1842 | + if( zBrName==0 && zTagName==0 ){ | |
| 1843 | + const char *z; | |
| 1844 | + if( (z = P("tl"))!=0 ){ | |
| 1845 | + zTagName = z; | |
| 1846 | + zMatchStyle = "brlist"; | |
| 1847 | + } | |
| 1848 | + if( (z = P("rl"))!=0 ){ | |
| 1849 | + zBrName = z; | |
| 1850 | + zMatchStyle = "brlist"; | |
| 1851 | + } | |
| 1852 | + } | |
| 1837 | 1853 | |
| 1838 | 1854 | /* Convert r=TAG to t=TAG&rel in order to populate the UI style widgets. */ |
| 1839 | 1855 | if( zBrName && !related ){ |
| 1840 | 1856 | cgi_delete_query_parameter("r"); |
| 1841 | 1857 | cgi_set_query_parameter("t", zBrName); (void)P("t"); |
| 1842 | 1858 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1597,10 +1597,12 @@ | |
| 1597 | ** ancestors of CX going back to the time of CHECKIN. |
| 1598 | ** All qualifying check-ins are shown unless there |
| 1599 | ** is also an n= or n1= query parameter. |
| 1600 | ** t=TAG Show only check-ins with the given TAG |
| 1601 | ** r=TAG Show check-ins related to TAG, equivalent to t=TAG&rel |
| 1602 | ** rel Show related check-ins as well as those matching t=TAG |
| 1603 | ** mionly Limit rel to show ancestors but not descendants |
| 1604 | ** nowiki Do not show wiki associated with branch or tag |
| 1605 | ** ms=MATCHSTYLE Set tag match style to EXACT, GLOB, LIKE, REGEXP |
| 1606 | ** u=USER Only show items associated with USER |
| @@ -1832,10 +1834,24 @@ | |
| 1832 | " AND event.objid=mlink.mid" |
| 1833 | " ORDER BY event.mtime LIMIT 1", |
| 1834 | P("cf") |
| 1835 | ); |
| 1836 | } |
| 1837 | |
| 1838 | /* Convert r=TAG to t=TAG&rel in order to populate the UI style widgets. */ |
| 1839 | if( zBrName && !related ){ |
| 1840 | cgi_delete_query_parameter("r"); |
| 1841 | cgi_set_query_parameter("t", zBrName); (void)P("t"); |
| 1842 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -1597,10 +1597,12 @@ | |
| 1597 | ** ancestors of CX going back to the time of CHECKIN. |
| 1598 | ** All qualifying check-ins are shown unless there |
| 1599 | ** is also an n= or n1= query parameter. |
| 1600 | ** t=TAG Show only check-ins with the given TAG |
| 1601 | ** r=TAG Show check-ins related to TAG, equivalent to t=TAG&rel |
| 1602 | ** tl=TAGLIST Shorthand for t=TAGLIST&ms=brlist |
| 1603 | ** rl=TAGLIST Shorthand for r=TAGLIST&ms=brlist |
| 1604 | ** rel Show related check-ins as well as those matching t=TAG |
| 1605 | ** mionly Limit rel to show ancestors but not descendants |
| 1606 | ** nowiki Do not show wiki associated with branch or tag |
| 1607 | ** ms=MATCHSTYLE Set tag match style to EXACT, GLOB, LIKE, REGEXP |
| 1608 | ** u=USER Only show items associated with USER |
| @@ -1832,10 +1834,24 @@ | |
| 1834 | " AND event.objid=mlink.mid" |
| 1835 | " ORDER BY event.mtime LIMIT 1", |
| 1836 | P("cf") |
| 1837 | ); |
| 1838 | } |
| 1839 | |
| 1840 | /* Check for tl=TAGLIST and rl=TAGLIST which are abbreviations for |
| 1841 | ** t=TAGLIST&ms=brlist and r=TAGLIST&ms=brlist repectively. */ |
| 1842 | if( zBrName==0 && zTagName==0 ){ |
| 1843 | const char *z; |
| 1844 | if( (z = P("tl"))!=0 ){ |
| 1845 | zTagName = z; |
| 1846 | zMatchStyle = "brlist"; |
| 1847 | } |
| 1848 | if( (z = P("rl"))!=0 ){ |
| 1849 | zBrName = z; |
| 1850 | zMatchStyle = "brlist"; |
| 1851 | } |
| 1852 | } |
| 1853 | |
| 1854 | /* Convert r=TAG to t=TAG&rel in order to populate the UI style widgets. */ |
| 1855 | if( zBrName && !related ){ |
| 1856 | cgi_delete_query_parameter("r"); |
| 1857 | cgi_set_query_parameter("t", zBrName); (void)P("t"); |
| 1858 |