Fossil SCM
Remove some end-of-line whitespace and fix some very minor comment typos and capitalization errors
Commit
05379255237e325ffbc16b4133a8e0701fb4ff948b59220f2a243ea4a0be0086
Parent
83f03e91c455e51…
2 files changed
+2
-2
+5
-5
+2
-2
| --- src/add.c | ||
| +++ src/add.c | ||
| @@ -193,11 +193,11 @@ | ||
| 193 | 193 | |
| 194 | 194 | /* |
| 195 | 195 | ** Add all files in the sfile temp table. |
| 196 | 196 | ** |
| 197 | 197 | ** Automatically exclude the repository file and any other files |
| 198 | -** with reserved names. Also exclude files that are beneath an | |
| 198 | +** with reserved names. Also exclude files that are beneath an | |
| 199 | 199 | ** existing symlink. |
| 200 | 200 | */ |
| 201 | 201 | static int add_files_in_sfile(int vid){ |
| 202 | 202 | const char *zRepo; /* Name of the repository database file */ |
| 203 | 203 | int nAdd = 0; /* Number of files added */ |
| @@ -216,11 +216,11 @@ | ||
| 216 | 216 | if( filenames_are_case_sensitive() ){ |
| 217 | 217 | xCmp = fossil_strcmp; |
| 218 | 218 | }else{ |
| 219 | 219 | xCmp = fossil_stricmp; |
| 220 | 220 | } |
| 221 | - db_prepare(&loop, | |
| 221 | + db_prepare(&loop, | |
| 222 | 222 | "SELECT pathname FROM sfile" |
| 223 | 223 | " WHERE pathname NOT IN (" |
| 224 | 224 | "SELECT sfile.pathname FROM vfile, sfile" |
| 225 | 225 | " WHERE vfile.islink" |
| 226 | 226 | " AND NOT vfile.deleted" |
| 227 | 227 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -193,11 +193,11 @@ | |
| 193 | |
| 194 | /* |
| 195 | ** Add all files in the sfile temp table. |
| 196 | ** |
| 197 | ** Automatically exclude the repository file and any other files |
| 198 | ** with reserved names. Also exclude files that are beneath an |
| 199 | ** existing symlink. |
| 200 | */ |
| 201 | static int add_files_in_sfile(int vid){ |
| 202 | const char *zRepo; /* Name of the repository database file */ |
| 203 | int nAdd = 0; /* Number of files added */ |
| @@ -216,11 +216,11 @@ | |
| 216 | if( filenames_are_case_sensitive() ){ |
| 217 | xCmp = fossil_strcmp; |
| 218 | }else{ |
| 219 | xCmp = fossil_stricmp; |
| 220 | } |
| 221 | db_prepare(&loop, |
| 222 | "SELECT pathname FROM sfile" |
| 223 | " WHERE pathname NOT IN (" |
| 224 | "SELECT sfile.pathname FROM vfile, sfile" |
| 225 | " WHERE vfile.islink" |
| 226 | " AND NOT vfile.deleted" |
| 227 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -193,11 +193,11 @@ | |
| 193 | |
| 194 | /* |
| 195 | ** Add all files in the sfile temp table. |
| 196 | ** |
| 197 | ** Automatically exclude the repository file and any other files |
| 198 | ** with reserved names. Also exclude files that are beneath an |
| 199 | ** existing symlink. |
| 200 | */ |
| 201 | static int add_files_in_sfile(int vid){ |
| 202 | const char *zRepo; /* Name of the repository database file */ |
| 203 | int nAdd = 0; /* Number of files added */ |
| @@ -216,11 +216,11 @@ | |
| 216 | if( filenames_are_case_sensitive() ){ |
| 217 | xCmp = fossil_strcmp; |
| 218 | }else{ |
| 219 | xCmp = fossil_stricmp; |
| 220 | } |
| 221 | db_prepare(&loop, |
| 222 | "SELECT pathname FROM sfile" |
| 223 | " WHERE pathname NOT IN (" |
| 224 | "SELECT sfile.pathname FROM vfile, sfile" |
| 225 | " WHERE vfile.islink" |
| 226 | " AND NOT vfile.deleted" |
| 227 |
+5
-5
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -54,12 +54,12 @@ | ||
| 54 | 54 | ** instead always appear to the the target object. |
| 55 | 55 | ** |
| 56 | 56 | ** SymFILE Symbolic links always appear to be files whose name is |
| 57 | 57 | ** the target pathname of the symbolic link. |
| 58 | 58 | ** |
| 59 | -** RepoFILE Like symfile is allow-symlinks is true, or like | |
| 60 | -** ExtFile if allow-symlinks is false. In other words, | |
| 59 | +** RepoFILE Like SymFILE if allow-symlinks is true, or like | |
| 60 | +** ExtFILE if allow-symlinks is false. In other words, | |
| 61 | 61 | ** symbolic links are only recognized as something different |
| 62 | 62 | ** from files or directories if allow-symlinks is true. |
| 63 | 63 | */ |
| 64 | 64 | #define ExtFILE 0 /* Always follow symlinks */ |
| 65 | 65 | #define RepoFILE 1 /* Follow symlinks if and only if allow-symlinks is OFF */ |
| @@ -439,11 +439,11 @@ | ||
| 439 | 439 | }; |
| 440 | 440 | if( !file_isfile(zFilename, ExtFILE) ) return 0; |
| 441 | 441 | sz = file_size(zFilename, ExtFILE); |
| 442 | 442 | if( sz<35328 ) return 0; |
| 443 | 443 | if( sz%512!=0 ) return 0; |
| 444 | - rc = sqlite3_open_v2(zFilename, &db, | |
| 444 | + rc = sqlite3_open_v2(zFilename, &db, | |
| 445 | 445 | SQLITE_OPEN_READWRITE, 0); |
| 446 | 446 | if( rc!=0 ) goto not_a_repo; |
| 447 | 447 | for(i=0; i<count(azReqTab); i++){ |
| 448 | 448 | if( sqlite3_table_column_metadata(db, "main", azReqTab[i],0,0,0,0,0,0) ){ |
| 449 | 449 | goto not_a_repo; |
| @@ -645,11 +645,11 @@ | ||
| 645 | 645 | */ |
| 646 | 646 | int file_setexe(const char *zFilename, int onoff){ |
| 647 | 647 | int rc = 0; |
| 648 | 648 | #if !defined(_WIN32) |
| 649 | 649 | struct stat buf; |
| 650 | - if( fossil_stat(zFilename, &buf, RepoFILE)!=0 | |
| 650 | + if( fossil_stat(zFilename, &buf, RepoFILE)!=0 | |
| 651 | 651 | || S_ISLNK(buf.st_mode) |
| 652 | 652 | || S_ISDIR(buf.st_mode) |
| 653 | 653 | ){ |
| 654 | 654 | return 0; |
| 655 | 655 | } |
| @@ -2554,15 +2554,15 @@ | ||
| 2554 | 2554 | } |
| 2555 | 2555 | case 'T': |
| 2556 | 2556 | case 't':{ |
| 2557 | 2557 | if( nFilename<9 || zEnd[-9]!='.' |
| 2558 | 2558 | || fossil_strnicmp(".fslckout", &zEnd[-9], 9) ){ |
| 2559 | - return 0; | |
| 2559 | + return 0; | |
| 2560 | 2560 | } |
| 2561 | 2561 | if( 9==nFilename ) return 1; |
| 2562 | 2562 | return zEnd[-10]=='/' ? 2 : gotSuffix; |
| 2563 | 2563 | } |
| 2564 | 2564 | default:{ |
| 2565 | 2565 | return 0; |
| 2566 | 2566 | } |
| 2567 | 2567 | } |
| 2568 | 2568 | } |
| 2569 | 2569 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -54,12 +54,12 @@ | |
| 54 | ** instead always appear to the the target object. |
| 55 | ** |
| 56 | ** SymFILE Symbolic links always appear to be files whose name is |
| 57 | ** the target pathname of the symbolic link. |
| 58 | ** |
| 59 | ** RepoFILE Like symfile is allow-symlinks is true, or like |
| 60 | ** ExtFile if allow-symlinks is false. In other words, |
| 61 | ** symbolic links are only recognized as something different |
| 62 | ** from files or directories if allow-symlinks is true. |
| 63 | */ |
| 64 | #define ExtFILE 0 /* Always follow symlinks */ |
| 65 | #define RepoFILE 1 /* Follow symlinks if and only if allow-symlinks is OFF */ |
| @@ -439,11 +439,11 @@ | |
| 439 | }; |
| 440 | if( !file_isfile(zFilename, ExtFILE) ) return 0; |
| 441 | sz = file_size(zFilename, ExtFILE); |
| 442 | if( sz<35328 ) return 0; |
| 443 | if( sz%512!=0 ) return 0; |
| 444 | rc = sqlite3_open_v2(zFilename, &db, |
| 445 | SQLITE_OPEN_READWRITE, 0); |
| 446 | if( rc!=0 ) goto not_a_repo; |
| 447 | for(i=0; i<count(azReqTab); i++){ |
| 448 | if( sqlite3_table_column_metadata(db, "main", azReqTab[i],0,0,0,0,0,0) ){ |
| 449 | goto not_a_repo; |
| @@ -645,11 +645,11 @@ | |
| 645 | */ |
| 646 | int file_setexe(const char *zFilename, int onoff){ |
| 647 | int rc = 0; |
| 648 | #if !defined(_WIN32) |
| 649 | struct stat buf; |
| 650 | if( fossil_stat(zFilename, &buf, RepoFILE)!=0 |
| 651 | || S_ISLNK(buf.st_mode) |
| 652 | || S_ISDIR(buf.st_mode) |
| 653 | ){ |
| 654 | return 0; |
| 655 | } |
| @@ -2554,15 +2554,15 @@ | |
| 2554 | } |
| 2555 | case 'T': |
| 2556 | case 't':{ |
| 2557 | if( nFilename<9 || zEnd[-9]!='.' |
| 2558 | || fossil_strnicmp(".fslckout", &zEnd[-9], 9) ){ |
| 2559 | return 0; |
| 2560 | } |
| 2561 | if( 9==nFilename ) return 1; |
| 2562 | return zEnd[-10]=='/' ? 2 : gotSuffix; |
| 2563 | } |
| 2564 | default:{ |
| 2565 | return 0; |
| 2566 | } |
| 2567 | } |
| 2568 | } |
| 2569 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -54,12 +54,12 @@ | |
| 54 | ** instead always appear to the the target object. |
| 55 | ** |
| 56 | ** SymFILE Symbolic links always appear to be files whose name is |
| 57 | ** the target pathname of the symbolic link. |
| 58 | ** |
| 59 | ** RepoFILE Like SymFILE if allow-symlinks is true, or like |
| 60 | ** ExtFILE if allow-symlinks is false. In other words, |
| 61 | ** symbolic links are only recognized as something different |
| 62 | ** from files or directories if allow-symlinks is true. |
| 63 | */ |
| 64 | #define ExtFILE 0 /* Always follow symlinks */ |
| 65 | #define RepoFILE 1 /* Follow symlinks if and only if allow-symlinks is OFF */ |
| @@ -439,11 +439,11 @@ | |
| 439 | }; |
| 440 | if( !file_isfile(zFilename, ExtFILE) ) return 0; |
| 441 | sz = file_size(zFilename, ExtFILE); |
| 442 | if( sz<35328 ) return 0; |
| 443 | if( sz%512!=0 ) return 0; |
| 444 | rc = sqlite3_open_v2(zFilename, &db, |
| 445 | SQLITE_OPEN_READWRITE, 0); |
| 446 | if( rc!=0 ) goto not_a_repo; |
| 447 | for(i=0; i<count(azReqTab); i++){ |
| 448 | if( sqlite3_table_column_metadata(db, "main", azReqTab[i],0,0,0,0,0,0) ){ |
| 449 | goto not_a_repo; |
| @@ -645,11 +645,11 @@ | |
| 645 | */ |
| 646 | int file_setexe(const char *zFilename, int onoff){ |
| 647 | int rc = 0; |
| 648 | #if !defined(_WIN32) |
| 649 | struct stat buf; |
| 650 | if( fossil_stat(zFilename, &buf, RepoFILE)!=0 |
| 651 | || S_ISLNK(buf.st_mode) |
| 652 | || S_ISDIR(buf.st_mode) |
| 653 | ){ |
| 654 | return 0; |
| 655 | } |
| @@ -2554,15 +2554,15 @@ | |
| 2554 | } |
| 2555 | case 'T': |
| 2556 | case 't':{ |
| 2557 | if( nFilename<9 || zEnd[-9]!='.' |
| 2558 | || fossil_strnicmp(".fslckout", &zEnd[-9], 9) ){ |
| 2559 | return 0; |
| 2560 | } |
| 2561 | if( 9==nFilename ) return 1; |
| 2562 | return zEnd[-10]=='/' ? 2 : gotSuffix; |
| 2563 | } |
| 2564 | default:{ |
| 2565 | return 0; |
| 2566 | } |
| 2567 | } |
| 2568 | } |
| 2569 |