Fossil SCM

Indicate whether a file artifact is a symlink or an executable in the web interface.

dmitry 2011-08-27 20:37 symlinks
Commit a7bf0e9ba436103b65ea275562c83fefa27c49dd
1 file changed +7 -1
+7 -1
--- src/info.c
+++ src/info.c
@@ -781,11 +781,11 @@
781781
782782
db_prepare(&q,
783783
"SELECT filename.name, datetime(event.mtime),"
784784
" coalesce(event.ecomment,event.comment),"
785785
" coalesce(event.euser,event.user),"
786
- " b.uuid"
786
+ " b.uuid, mlink.mperm"
787787
" FROM mlink, filename, event, blob a, blob b"
788788
" WHERE filename.fnid=mlink.fnid"
789789
" AND event.objid=mlink.mid"
790790
" AND a.rid=mlink.fid"
791791
" AND b.rid=mlink.mid"
@@ -796,19 +796,25 @@
796796
const char *zName = db_column_text(&q, 0);
797797
const char *zDate = db_column_text(&q, 1);
798798
const char *zCom = db_column_text(&q, 2);
799799
const char *zUser = db_column_text(&q, 3);
800800
const char *zVers = db_column_text(&q, 4);
801
+ int mPerm = db_column_int(&q, 5);
801802
if( cnt>0 ){
802803
@ Also file
803804
}else{
804805
@ File
805806
}
806807
if( g.okHistory ){
807808
@ <a href="%s(g.zTop)/finfo?name=%T(zName)">%h(zName)</a>
808809
}else{
809810
@ %h(zName)
811
+ }
812
+ if( mPerm==PERM_LNK ){
813
+ @ (symbolic link)
814
+ }else if( mPerm==PERM_EXE ){
815
+ @ (executable)
810816
}
811817
@ part of check-in
812818
hyperlink_to_uuid(zVers);
813819
@ - %w(zCom) by
814820
hyperlink_to_user(zUser,zDate," on");
815821
--- 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

Keyboard Shortcuts

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