Fossil SCM

On /timeline with d=, stop the list at an ft= name that is not a tag only when it names a check-in dated after the d= check-in, and otherwise ignore it as trunk does, so an unknown or ambiguous name no longer gives an error page. This narrows [e94701edb2].

dmestas 2026-11-23 00:11 UTC small-fixes
Commit 75f83fce6d6765dd60af2117631320e240b8a227a1e4c8a5e84d029c7bcdf1cb
1 file changed +2 -1
+2 -1
--- src/timeline.c
+++ src/timeline.c
@@ -2558,11 +2558,12 @@
25582558
}
25592559
if( zFwdTo ){
25602560
double rStartDate = mtime_of_rid(d_rid, 0.0);
25612561
ridFwdTo = first_checkin_with_tag_after_date(zFwdTo, rStartDate);
25622562
if( ridFwdTo==0 ){
2563
- ridFwdTo = name_to_typed_rid(zFwdTo,"ci");
2563
+ int rid = symbolic_name_to_rid(zFwdTo,"ci");
2564
+ if( rid>0 && mtime_of_rid(rid, 0.0)>rStartDate ) ridFwdTo = rid;
25642565
}
25652566
if( ridFwdTo ){
25662567
if( !haveParameterN ) nEntry = 0;
25672568
rStopTime = mtime_of_rid(ridFwdTo, 9e99);
25682569
}
25692570
--- src/timeline.c
+++ src/timeline.c
@@ -2558,11 +2558,12 @@
2558 }
2559 if( zFwdTo ){
2560 double rStartDate = mtime_of_rid(d_rid, 0.0);
2561 ridFwdTo = first_checkin_with_tag_after_date(zFwdTo, rStartDate);
2562 if( ridFwdTo==0 ){
2563 ridFwdTo = name_to_typed_rid(zFwdTo,"ci");
 
2564 }
2565 if( ridFwdTo ){
2566 if( !haveParameterN ) nEntry = 0;
2567 rStopTime = mtime_of_rid(ridFwdTo, 9e99);
2568 }
2569
--- src/timeline.c
+++ src/timeline.c
@@ -2558,11 +2558,12 @@
2558 }
2559 if( zFwdTo ){
2560 double rStartDate = mtime_of_rid(d_rid, 0.0);
2561 ridFwdTo = first_checkin_with_tag_after_date(zFwdTo, rStartDate);
2562 if( ridFwdTo==0 ){
2563 int rid = symbolic_name_to_rid(zFwdTo,"ci");
2564 if( rid>0 && mtime_of_rid(rid, 0.0)>rStartDate ) ridFwdTo = rid;
2565 }
2566 if( ridFwdTo ){
2567 if( !haveParameterN ) nEntry = 0;
2568 rStopTime = mtime_of_rid(ridFwdTo, 9e99);
2569 }
2570

Keyboard Shortcuts

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