Fossil SCM

Add a comment to the tree-view to explain that file ages are relative to the check-in time.

drh 2022-09-17 12:45 trunk
Commit 0fb353c10ddddcdaa9ab0d2fbe2b52991b51ddce3ea7736d1b9239c959316695
1 file changed +7 -3
+7 -3
--- src/browse.c
+++ src/browse.c
@@ -845,17 +845,17 @@
845845
@ <h2>%s(zObjType) in the %z(href("%R/info?name=tip"))latest check-in</a>
846846
}else if( isBranchCI ){
847847
@ <h2>%s(zObjType) in the %z(href("%R/info?name=%T",zCI))latest check-in\
848848
@ </a> for branch %z(href("%R/timeline?r=%T",zCI))%h(zCI)</a>
849849
if( blob_size(&dirname) ){
850
- @ and %s(blob_str(&dirname))</h2>
850
+ @ and %s(blob_str(&dirname))
851851
}
852852
}else if( zCI ){
853853
@ <h2>%s(zObjType) for check-in \
854
- @ %z(href("%R/info?name=%T",zCI))%h(zCI)</a></h2>
854
+ @ %z(href("%R/info?name=%T",zCI))%h(zCI)</a>
855855
if( blob_size(&dirname) ){
856
- @ and %s(blob_str(&dirname))</h2>
856
+ @ and %s(blob_str(&dirname))
857857
}
858858
}else{
859859
int n = db_int(0, "SELECT count(*) FROM plink");
860860
@ <h2>%s(zObjType) from all %d(n) check-ins %s(blob_str(&dirname))
861861
}
@@ -863,10 +863,14 @@
863863
@ sorted by modification time</h2>
864864
}else{
865865
@ sorted by filename</h2>
866866
}
867867
868
+ if( zNow ){
869
+ @ <p>File ages are expressed relative to the check-in time of
870
+ @ %z(href("%R/timeline?c=%t",zNow))%s(zNow)</a>.</p>
871
+ }
868872
869873
/* Generate tree of lists.
870874
**
871875
** Each file and directory is a list element: <li>. Files have class=file
872876
** and if the filename as the suffix "xyz" the file also has class=file-xyz.
873877
--- src/browse.c
+++ src/browse.c
@@ -845,17 +845,17 @@
845 @ <h2>%s(zObjType) in the %z(href("%R/info?name=tip"))latest check-in</a>
846 }else if( isBranchCI ){
847 @ <h2>%s(zObjType) in the %z(href("%R/info?name=%T",zCI))latest check-in\
848 @ </a> for branch %z(href("%R/timeline?r=%T",zCI))%h(zCI)</a>
849 if( blob_size(&dirname) ){
850 @ and %s(blob_str(&dirname))</h2>
851 }
852 }else if( zCI ){
853 @ <h2>%s(zObjType) for check-in \
854 @ %z(href("%R/info?name=%T",zCI))%h(zCI)</a></h2>
855 if( blob_size(&dirname) ){
856 @ and %s(blob_str(&dirname))</h2>
857 }
858 }else{
859 int n = db_int(0, "SELECT count(*) FROM plink");
860 @ <h2>%s(zObjType) from all %d(n) check-ins %s(blob_str(&dirname))
861 }
@@ -863,10 +863,14 @@
863 @ sorted by modification time</h2>
864 }else{
865 @ sorted by filename</h2>
866 }
867
 
 
 
 
868
869 /* Generate tree of lists.
870 **
871 ** Each file and directory is a list element: <li>. Files have class=file
872 ** and if the filename as the suffix "xyz" the file also has class=file-xyz.
873
--- src/browse.c
+++ src/browse.c
@@ -845,17 +845,17 @@
845 @ <h2>%s(zObjType) in the %z(href("%R/info?name=tip"))latest check-in</a>
846 }else if( isBranchCI ){
847 @ <h2>%s(zObjType) in the %z(href("%R/info?name=%T",zCI))latest check-in\
848 @ </a> for branch %z(href("%R/timeline?r=%T",zCI))%h(zCI)</a>
849 if( blob_size(&dirname) ){
850 @ and %s(blob_str(&dirname))
851 }
852 }else if( zCI ){
853 @ <h2>%s(zObjType) for check-in \
854 @ %z(href("%R/info?name=%T",zCI))%h(zCI)</a>
855 if( blob_size(&dirname) ){
856 @ and %s(blob_str(&dirname))
857 }
858 }else{
859 int n = db_int(0, "SELECT count(*) FROM plink");
860 @ <h2>%s(zObjType) from all %d(n) check-ins %s(blob_str(&dirname))
861 }
@@ -863,10 +863,14 @@
863 @ sorted by modification time</h2>
864 }else{
865 @ sorted by filename</h2>
866 }
867
868 if( zNow ){
869 @ <p>File ages are expressed relative to the check-in time of
870 @ %z(href("%R/timeline?c=%t",zNow))%s(zNow)</a>.</p>
871 }
872
873 /* Generate tree of lists.
874 **
875 ** Each file and directory is a list element: <li>. Files have class=file
876 ** and if the filename as the suffix "xyz" the file also has class=file-xyz.
877

Keyboard Shortcuts

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