Fossil SCM

Tweak comment style for consistency within functions

andygoth 2017-10-14 21:48 UTC andygoth-enhanced-symlink
Commit 364d04315b162ec5496b56ac9de265272d0ef204b045bd14415a59e0b307dd91
2 files changed +3 -5 +3 -3
+3 -5
--- src/checkin.c
+++ src/checkin.c
@@ -1501,11 +1501,11 @@
15011501
int nFBcard = 0; /* Number of B-cards and F-cards */
15021502
int i; /* Loop counter */
15031503
const char *zColor; /* Modified value of p->zColor */
15041504
15051505
/* On Windows, get symlink permission status from the "manifest.symlinks" file
1506
- * if it exists and if the "manifest" setting contains the "l" flag. */
1506
+ ** if it exists and if the "manifest" setting contains the "l" flag. */
15071507
#ifdef _WIN32
15081508
int manifestSymlinks = get_checkout_symlink_table();
15091509
#endif
15101510
15111511
assert( pBaseline==0 || pBaseline->zBaseline==0 );
@@ -1563,20 +1563,18 @@
15631563
15641564
/* Potentially update the permissions of files selected to be checked in. */
15651565
#ifdef _WIN32
15661566
/* For Windows, if the "manifest" setting contains the "l" flag and the
15671567
** "manifest.symlinks" file exists, use its contents to determine which
1568
- ** files do and do not have the symlink permission.
1569
- */
1568
+ ** files do and do not have the symlink permission. */
15701569
if( isSelected && manifestSymlinks ){
15711570
isLink = db_exists("SELECT 1 FROM symlink_perm WHERE filename=%Q", zName);
15721571
}
15731572
#else
15741573
/* For unix, extract the "executable" and "symlink" permissions
15751574
** directly from the filesystem. On windows, permissions are
1576
- ** unchanged from the original.
1577
- */
1575
+ ** unchanged from the original. */
15781576
if( isSelected ){
15791577
int mPerm;
15801578
15811579
mPerm = file_wd_perm(blob_str(&filename));
15821580
isExe = ( mPerm==PERM_EXE );
15831581
--- src/checkin.c
+++ src/checkin.c
@@ -1501,11 +1501,11 @@
1501 int nFBcard = 0; /* Number of B-cards and F-cards */
1502 int i; /* Loop counter */
1503 const char *zColor; /* Modified value of p->zColor */
1504
1505 /* On Windows, get symlink permission status from the "manifest.symlinks" file
1506 * if it exists and if the "manifest" setting contains the "l" flag. */
1507 #ifdef _WIN32
1508 int manifestSymlinks = get_checkout_symlink_table();
1509 #endif
1510
1511 assert( pBaseline==0 || pBaseline->zBaseline==0 );
@@ -1563,20 +1563,18 @@
1563
1564 /* Potentially update the permissions of files selected to be checked in. */
1565 #ifdef _WIN32
1566 /* For Windows, if the "manifest" setting contains the "l" flag and the
1567 ** "manifest.symlinks" file exists, use its contents to determine which
1568 ** files do and do not have the symlink permission.
1569 */
1570 if( isSelected && manifestSymlinks ){
1571 isLink = db_exists("SELECT 1 FROM symlink_perm WHERE filename=%Q", zName);
1572 }
1573 #else
1574 /* For unix, extract the "executable" and "symlink" permissions
1575 ** directly from the filesystem. On windows, permissions are
1576 ** unchanged from the original.
1577 */
1578 if( isSelected ){
1579 int mPerm;
1580
1581 mPerm = file_wd_perm(blob_str(&filename));
1582 isExe = ( mPerm==PERM_EXE );
1583
--- src/checkin.c
+++ src/checkin.c
@@ -1501,11 +1501,11 @@
1501 int nFBcard = 0; /* Number of B-cards and F-cards */
1502 int i; /* Loop counter */
1503 const char *zColor; /* Modified value of p->zColor */
1504
1505 /* On Windows, get symlink permission status from the "manifest.symlinks" file
1506 ** if it exists and if the "manifest" setting contains the "l" flag. */
1507 #ifdef _WIN32
1508 int manifestSymlinks = get_checkout_symlink_table();
1509 #endif
1510
1511 assert( pBaseline==0 || pBaseline->zBaseline==0 );
@@ -1563,20 +1563,18 @@
1563
1564 /* Potentially update the permissions of files selected to be checked in. */
1565 #ifdef _WIN32
1566 /* For Windows, if the "manifest" setting contains the "l" flag and the
1567 ** "manifest.symlinks" file exists, use its contents to determine which
1568 ** files do and do not have the symlink permission. */
 
1569 if( isSelected && manifestSymlinks ){
1570 isLink = db_exists("SELECT 1 FROM symlink_perm WHERE filename=%Q", zName);
1571 }
1572 #else
1573 /* For unix, extract the "executable" and "symlink" permissions
1574 ** directly from the filesystem. On windows, permissions are
1575 ** unchanged from the original. */
 
1576 if( isSelected ){
1577 int mPerm;
1578
1579 mPerm = file_wd_perm(blob_str(&filename));
1580 isExe = ( mPerm==PERM_EXE );
1581
+3 -3
--- src/vfile.c
+++ src/vfile.c
@@ -175,11 +175,11 @@
175175
Stmt q;
176176
int useMtime = (cksigFlags & CKSIG_HASH)==0
177177
&& db_get_boolean("mtime-changes", 1);
178178
179179
/* On Windows, get symlink permission status from the "manifest.symlinks" file
180
- * if it exists and if the "manifest" setting contains the "l" flag. */
180
+ ** if it exists and if the "manifest" setting contains the "l" flag. */
181181
#ifdef _WIN32
182182
int manifestSymlinks = get_checkout_symlink_table();
183183
#endif
184184
185185
db_begin_transaction();
@@ -211,12 +211,12 @@
211211
currentSize = file_wd_size(zName);
212212
currentMtime = file_wd_mtime(0);
213213
origPerm = db_column_int(&q, 8);
214214
#ifdef _WIN32
215215
/* For Windows, if the "manifest" setting contains the "l" flag and the
216
- * "manifest.symlinks" file exists, use its contents to determine which
217
- * files do and do not have the symlink permission. */
216
+ ** "manifest.symlinks" file exists, use its contents to determine which
217
+ ** files do and do not have the symlink permission. */
218218
if( manifestSymlinks
219219
&& db_exists("SELECT 1 FROM symlink_perm WHERE filename=%Q", zName) ){
220220
currentPerm = PERM_LNK;
221221
}else{
222222
currentPerm = origPerm;
223223
--- src/vfile.c
+++ src/vfile.c
@@ -175,11 +175,11 @@
175 Stmt q;
176 int useMtime = (cksigFlags & CKSIG_HASH)==0
177 && db_get_boolean("mtime-changes", 1);
178
179 /* On Windows, get symlink permission status from the "manifest.symlinks" file
180 * if it exists and if the "manifest" setting contains the "l" flag. */
181 #ifdef _WIN32
182 int manifestSymlinks = get_checkout_symlink_table();
183 #endif
184
185 db_begin_transaction();
@@ -211,12 +211,12 @@
211 currentSize = file_wd_size(zName);
212 currentMtime = file_wd_mtime(0);
213 origPerm = db_column_int(&q, 8);
214 #ifdef _WIN32
215 /* For Windows, if the "manifest" setting contains the "l" flag and the
216 * "manifest.symlinks" file exists, use its contents to determine which
217 * files do and do not have the symlink permission. */
218 if( manifestSymlinks
219 && db_exists("SELECT 1 FROM symlink_perm WHERE filename=%Q", zName) ){
220 currentPerm = PERM_LNK;
221 }else{
222 currentPerm = origPerm;
223
--- src/vfile.c
+++ src/vfile.c
@@ -175,11 +175,11 @@
175 Stmt q;
176 int useMtime = (cksigFlags & CKSIG_HASH)==0
177 && db_get_boolean("mtime-changes", 1);
178
179 /* On Windows, get symlink permission status from the "manifest.symlinks" file
180 ** if it exists and if the "manifest" setting contains the "l" flag. */
181 #ifdef _WIN32
182 int manifestSymlinks = get_checkout_symlink_table();
183 #endif
184
185 db_begin_transaction();
@@ -211,12 +211,12 @@
211 currentSize = file_wd_size(zName);
212 currentMtime = file_wd_mtime(0);
213 origPerm = db_column_int(&q, 8);
214 #ifdef _WIN32
215 /* For Windows, if the "manifest" setting contains the "l" flag and the
216 ** "manifest.symlinks" file exists, use its contents to determine which
217 ** files do and do not have the symlink permission. */
218 if( manifestSymlinks
219 && db_exists("SELECT 1 FROM symlink_perm WHERE filename=%Q", zName) ){
220 currentPerm = PERM_LNK;
221 }else{
222 currentPerm = origPerm;
223

Keyboard Shortcuts

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