Check-in [708ffba4da]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add patch to fix browser semantics
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1: 708ffba4da256614077e9d3204be89e8903eb74a
User & Date: rkeene 2020-09-03 13:26:18
Context
2020-09-03
13:26
Add patch to fix browser semantics Leaf check-in: 708ffba4da user: rkeene tags: trunk
2020-09-02
20:08
Actually perform cleanup check-in: e27e3470a6 user: rkeene tags: trunk
Changes

Added scripts/fossil/patches/fossil-2.12.1-fix-browser.diff.

































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff -uNr fossil-2.12.1.orig/src/browse.c fossil-2.12.1-symbolic-to-concrete/src/browse.c
--- fossil-2.12.1.orig/src/browse.c	2020-08-20 08:27:04.000000000 -0500
+++ fossil-2.12.1-symbolic-to-concrete/src/browse.c	2020-09-03 08:08:32.369787985 -0500
@@ -175,7 +175,7 @@
       zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
       isSymbolicCI = (sqlite3_strnicmp(zUuid, zCI, strlen(zCI))!=0);
       isBranchCI = branch_includes_uuid(zCI, zUuid);
-      Th_Store("current_checkin", zCI);
+      Th_Store("current_checkin", zUuid);
     }else{
       zCI = 0;
     }
@@ -226,7 +226,7 @@
     }else {
       @ of check-in %z(href("%R/info?name=%T",zCI))%h(zCI)</a></h2>
     }
-    zSubdirLink = mprintf("%R/dir?ci=%T&name=%T", zCI, zPrefix);
+    zSubdirLink = mprintf("%R/dir?ci=%T&name=%T", zUuid, zPrefix);
     if( nD==0 ){
       style_submenu_element("File Ages", "%R/fileage?name=%T", zCI);
     }
@@ -323,7 +323,7 @@
     }else{
       const char *zLink;
       if( zCI ){
-        zLink = href("%R/file?name=%T%T&ci=%T",zPrefix,zFN,zCI);
+        zLink = href("%R/file?name=%T%T&ci=%T",zPrefix,zFN,zUuid);
       }else{
         zLink = href("%R/finfo?name=%T%T",zPrefix,zFN);
       }
@@ -705,7 +705,7 @@
                          " FROM event WHERE objid=%d", rid);
       isSymbolicCI = (sqlite3_strnicmp(zUuid, zCI, strlen(zCI)) != 0);
       isBranchCI = branch_includes_uuid(zCI, zUuid);
-      Th_Store("current_checkin", zCI);
+      Th_Store("current_checkin", zUuid);
     }else{
       zCI = 0;
     }
@@ -892,7 +892,7 @@
       const char *zFileClass = fileext_class(p->zName);
       char *zLink;
       if( zCI ){
-        zLink = href("%R/file?name=%T&ci=%T",p->zFullName,zCI);
+        zLink = href("%R/file?name=%T&ci=%T",p->zFullName,zUuid);
       }else{
         zLink = href("%R/finfo?name=%T",p->zFullName);
       }