Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch betterExeHandling Excluding Merge-Ins
This is equivalent to a diff from fa81575c8d to 5a587ba570
2011-04-04
| ||
03:29 | Update the built-in SQLite to the latest beta for 3.7.6. check-in: a74cfe0a14 user: drh tags: trunk | |
01:56 | ws change to capture chmod +x change Leaf check-in: 5a587ba570 user: bharder tags: betterExeHandling | |
01:48 | Repair completely bogus sql that was erroneously copy/pasted check-in: fe7ac3931a user: bharder tags: betterExeHandling | |
01:10 | Create new branch named "betterExeHandling" check-in: 85c6c1d7eb user: bharder tags: betterExeHandling | |
2011-04-02
| ||
14:42 | Merge from trunk. check-in: e4ebc85e66 user: jan tags: jan-clientcert | |
2011-04-01
| ||
01:22 | Add the "fossil bisect options" command. Make the auto-next and direct-only options default to on since that seems to generate a more useful bisect in a heavily branched tree. check-in: fa81575c8d user: drh tags: trunk | |
2011-03-31
| ||
11:41 | Change the "filechng" query parameter for timeline to "fc". Add "Show Files" and "Hide Files" submenus. check-in: 0208b7fc43 user: drh tags: trunk | |
Changes to src/http.c.
1 -/* 1 +/* 2 2 ** Copyright (c) 2007 D. Richard Hipp 3 3 ** 4 4 ** This program is free software; you can redistribute it and/or 5 5 ** modify it under the terms of the Simplified BSD License (also 6 6 ** known as the "2-Clause License" or "FreeBSD License".) 7 7 8 8 ** This program is distributed in the hope that it will be useful,
Changes to src/vfile.c.
115 115 } 116 116 db_finalize(&ridq); 117 117 db_finalize(&ins); 118 118 manifest_destroy(p); 119 119 db_end_transaction(0); 120 120 } 121 121 122 + 123 +/* 124 +** Poll db for current exe-status of a file. 125 +*/ 126 +static int test_isexe(const char *zFilename, int vid){ 127 + static Stmt s; 128 + int isexe; 129 + db_static_prepare(&s, 130 + "SELECT isexe" 131 + " FROM vfile where vid=:vid AND pathname=:path" 132 + ); 133 + db_bind_int(&s, ":vid", vid); 134 + db_bind_text(&s, ":path", zFilename); 135 + db_step(&s); 136 + isexe = db_column_int(&s, 0); 137 + db_reset(&s); 138 + 139 + return isexe; 140 +} 141 + 122 142 /* 123 143 ** Check the file signature of the disk image for every VFILE of vid. 124 144 ** 125 145 ** Set the VFILE.CHNGED field on every file that has changed. Also 126 146 ** set VFILE.CHNGED on every folder that contains a file or folder 127 147 ** that has changed. 128 148 ** ................................................................................ 167 187 fossil_warning("not an ordinary file: %s", zName); 168 188 nErr++; 169 189 } 170 190 chnged = 1; 171 191 }else if( oldChnged>=2 ){ 172 192 chnged = oldChnged; 173 193 }else if( rid==0 ){ 194 + chnged = 1; 195 + }else if(file_isexe(zName)!=test_isexe(zName,vid)){ 174 196 chnged = 1; 175 197 } 176 198 if( chnged!=1 ){ 177 199 i64 origSize = db_column_int64(&q, 6); 178 200 currentMtime = file_mtime(0); 179 201 if( origSize!=file_size(0) ){ 180 202 /* A file size change is definitive - the file has changed. No