Fossil SCM

Add new tl= and rl= query parameters to /timeline

drh 2023-11-18 20:41 trunk
Commit 2288b74257674fce3d49654206d1adbe7a52d2c9f07ec1d38ee6280a1f2f221e
1 file changed +16
--- src/timeline.c
+++ src/timeline.c
@@ -1597,10 +1597,12 @@
15971597
** ancestors of CX going back to the time of CHECKIN.
15981598
** All qualifying check-ins are shown unless there
15991599
** is also an n= or n1= query parameter.
16001600
** t=TAG Show only check-ins with the given TAG
16011601
** 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
16021604
** rel Show related check-ins as well as those matching t=TAG
16031605
** mionly Limit rel to show ancestors but not descendants
16041606
** nowiki Do not show wiki associated with branch or tag
16051607
** ms=MATCHSTYLE Set tag match style to EXACT, GLOB, LIKE, REGEXP
16061608
** u=USER Only show items associated with USER
@@ -1832,10 +1834,24 @@
18321834
" AND event.objid=mlink.mid"
18331835
" ORDER BY event.mtime LIMIT 1",
18341836
P("cf")
18351837
);
18361838
}
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
+ }
18371853
18381854
/* Convert r=TAG to t=TAG&rel in order to populate the UI style widgets. */
18391855
if( zBrName && !related ){
18401856
cgi_delete_query_parameter("r");
18411857
cgi_set_query_parameter("t", zBrName); (void)P("t");
18421858
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button