Fossil SCM
Indicate whether a file artifact is a symlink or an executable in the web interface.
Commit
a7bf0e9ba436103b65ea275562c83fefa27c49dd
Parent
a7e747e58f7a02b…
1 file changed
+7
-1
+7
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -781,11 +781,11 @@ | ||
| 781 | 781 | |
| 782 | 782 | db_prepare(&q, |
| 783 | 783 | "SELECT filename.name, datetime(event.mtime)," |
| 784 | 784 | " coalesce(event.ecomment,event.comment)," |
| 785 | 785 | " coalesce(event.euser,event.user)," |
| 786 | - " b.uuid" | |
| 786 | + " b.uuid, mlink.mperm" | |
| 787 | 787 | " FROM mlink, filename, event, blob a, blob b" |
| 788 | 788 | " WHERE filename.fnid=mlink.fnid" |
| 789 | 789 | " AND event.objid=mlink.mid" |
| 790 | 790 | " AND a.rid=mlink.fid" |
| 791 | 791 | " AND b.rid=mlink.mid" |
| @@ -796,19 +796,25 @@ | ||
| 796 | 796 | const char *zName = db_column_text(&q, 0); |
| 797 | 797 | const char *zDate = db_column_text(&q, 1); |
| 798 | 798 | const char *zCom = db_column_text(&q, 2); |
| 799 | 799 | const char *zUser = db_column_text(&q, 3); |
| 800 | 800 | const char *zVers = db_column_text(&q, 4); |
| 801 | + int mPerm = db_column_int(&q, 5); | |
| 801 | 802 | if( cnt>0 ){ |
| 802 | 803 | @ Also file |
| 803 | 804 | }else{ |
| 804 | 805 | @ File |
| 805 | 806 | } |
| 806 | 807 | if( g.okHistory ){ |
| 807 | 808 | @ <a href="%s(g.zTop)/finfo?name=%T(zName)">%h(zName)</a> |
| 808 | 809 | }else{ |
| 809 | 810 | @ %h(zName) |
| 811 | + } | |
| 812 | + if( mPerm==PERM_LNK ){ | |
| 813 | + @ (symbolic link) | |
| 814 | + }else if( mPerm==PERM_EXE ){ | |
| 815 | + @ (executable) | |
| 810 | 816 | } |
| 811 | 817 | @ part of check-in |
| 812 | 818 | hyperlink_to_uuid(zVers); |
| 813 | 819 | @ - %w(zCom) by |
| 814 | 820 | hyperlink_to_user(zUser,zDate," on"); |
| 815 | 821 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -781,11 +781,11 @@ | |
| 781 | |
| 782 | db_prepare(&q, |
| 783 | "SELECT filename.name, datetime(event.mtime)," |
| 784 | " coalesce(event.ecomment,event.comment)," |
| 785 | " coalesce(event.euser,event.user)," |
| 786 | " b.uuid" |
| 787 | " FROM mlink, filename, event, blob a, blob b" |
| 788 | " WHERE filename.fnid=mlink.fnid" |
| 789 | " AND event.objid=mlink.mid" |
| 790 | " AND a.rid=mlink.fid" |
| 791 | " AND b.rid=mlink.mid" |
| @@ -796,19 +796,25 @@ | |
| 796 | const char *zName = db_column_text(&q, 0); |
| 797 | const char *zDate = db_column_text(&q, 1); |
| 798 | const char *zCom = db_column_text(&q, 2); |
| 799 | const char *zUser = db_column_text(&q, 3); |
| 800 | const char *zVers = db_column_text(&q, 4); |
| 801 | if( cnt>0 ){ |
| 802 | @ Also file |
| 803 | }else{ |
| 804 | @ File |
| 805 | } |
| 806 | if( g.okHistory ){ |
| 807 | @ <a href="%s(g.zTop)/finfo?name=%T(zName)">%h(zName)</a> |
| 808 | }else{ |
| 809 | @ %h(zName) |
| 810 | } |
| 811 | @ part of check-in |
| 812 | hyperlink_to_uuid(zVers); |
| 813 | @ - %w(zCom) by |
| 814 | hyperlink_to_user(zUser,zDate," on"); |
| 815 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -781,11 +781,11 @@ | |
| 781 | |
| 782 | db_prepare(&q, |
| 783 | "SELECT filename.name, datetime(event.mtime)," |
| 784 | " coalesce(event.ecomment,event.comment)," |
| 785 | " coalesce(event.euser,event.user)," |
| 786 | " b.uuid, mlink.mperm" |
| 787 | " FROM mlink, filename, event, blob a, blob b" |
| 788 | " WHERE filename.fnid=mlink.fnid" |
| 789 | " AND event.objid=mlink.mid" |
| 790 | " AND a.rid=mlink.fid" |
| 791 | " AND b.rid=mlink.mid" |
| @@ -796,19 +796,25 @@ | |
| 796 | const char *zName = db_column_text(&q, 0); |
| 797 | const char *zDate = db_column_text(&q, 1); |
| 798 | const char *zCom = db_column_text(&q, 2); |
| 799 | const char *zUser = db_column_text(&q, 3); |
| 800 | const char *zVers = db_column_text(&q, 4); |
| 801 | int mPerm = db_column_int(&q, 5); |
| 802 | if( cnt>0 ){ |
| 803 | @ Also file |
| 804 | }else{ |
| 805 | @ File |
| 806 | } |
| 807 | if( g.okHistory ){ |
| 808 | @ <a href="%s(g.zTop)/finfo?name=%T(zName)">%h(zName)</a> |
| 809 | }else{ |
| 810 | @ %h(zName) |
| 811 | } |
| 812 | if( mPerm==PERM_LNK ){ |
| 813 | @ (symbolic link) |
| 814 | }else if( mPerm==PERM_EXE ){ |
| 815 | @ (executable) |
| 816 | } |
| 817 | @ part of check-in |
| 818 | hyperlink_to_uuid(zVers); |
| 819 | @ - %w(zCom) by |
| 820 | hyperlink_to_user(zUser,zDate," on"); |
| 821 |