Fossil SCM
Merge the partialCommitPerms branch which fixes an issue with permission bit changes of non-specified files being picked up by a partial commit.
Commit
a0da8b3873071649c5007424366d75b2e3b60a2c
Parent
394177917c6d66d…
2 files changed
+3
-2
+3
-2
+3
-2
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -708,13 +708,14 @@ | ||
| 708 | 708 | blob_append(&filename, zName, -1); |
| 709 | 709 | |
| 710 | 710 | #if !defined(_WIN32) |
| 711 | 711 | /* For unix, extract the "executable" and "symlink" permissions |
| 712 | 712 | ** directly from the filesystem. On windows, permissions are |
| 713 | - ** unchanged from the original. | |
| 713 | + ** unchanged from the original. However, only do this if the file | |
| 714 | + ** itself is actually selected to be part of this check-in. | |
| 714 | 715 | */ |
| 715 | - { | |
| 716 | + if( isSelected ){ | |
| 716 | 717 | int mPerm; |
| 717 | 718 | |
| 718 | 719 | mPerm = file_wd_perm(blob_str(&filename)); |
| 719 | 720 | isExe = ( mPerm==PERM_EXE ); |
| 720 | 721 | isLink = ( mPerm==PERM_LNK ); |
| 721 | 722 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -708,13 +708,14 @@ | |
| 708 | blob_append(&filename, zName, -1); |
| 709 | |
| 710 | #if !defined(_WIN32) |
| 711 | /* For unix, extract the "executable" and "symlink" permissions |
| 712 | ** directly from the filesystem. On windows, permissions are |
| 713 | ** unchanged from the original. |
| 714 | */ |
| 715 | { |
| 716 | int mPerm; |
| 717 | |
| 718 | mPerm = file_wd_perm(blob_str(&filename)); |
| 719 | isExe = ( mPerm==PERM_EXE ); |
| 720 | isLink = ( mPerm==PERM_LNK ); |
| 721 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -708,13 +708,14 @@ | |
| 708 | blob_append(&filename, zName, -1); |
| 709 | |
| 710 | #if !defined(_WIN32) |
| 711 | /* For unix, extract the "executable" and "symlink" permissions |
| 712 | ** directly from the filesystem. On windows, permissions are |
| 713 | ** unchanged from the original. However, only do this if the file |
| 714 | ** itself is actually selected to be part of this check-in. |
| 715 | */ |
| 716 | if( isSelected ){ |
| 717 | int mPerm; |
| 718 | |
| 719 | mPerm = file_wd_perm(blob_str(&filename)); |
| 720 | isExe = ( mPerm==PERM_EXE ); |
| 721 | isLink = ( mPerm==PERM_LNK ); |
| 722 |
+3
-2
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -708,13 +708,14 @@ | ||
| 708 | 708 | blob_append(&filename, zName, -1); |
| 709 | 709 | |
| 710 | 710 | #if !defined(_WIN32) |
| 711 | 711 | /* For unix, extract the "executable" and "symlink" permissions |
| 712 | 712 | ** directly from the filesystem. On windows, permissions are |
| 713 | - ** unchanged from the original. | |
| 713 | + ** unchanged from the original. However, only do this if the file | |
| 714 | + ** itself is actually selected to be part of this check-in. | |
| 714 | 715 | */ |
| 715 | - { | |
| 716 | + if( isSelected ){ | |
| 716 | 717 | int mPerm; |
| 717 | 718 | |
| 718 | 719 | mPerm = file_wd_perm(blob_str(&filename)); |
| 719 | 720 | isExe = ( mPerm==PERM_EXE ); |
| 720 | 721 | isLink = ( mPerm==PERM_LNK ); |
| 721 | 722 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -708,13 +708,14 @@ | |
| 708 | blob_append(&filename, zName, -1); |
| 709 | |
| 710 | #if !defined(_WIN32) |
| 711 | /* For unix, extract the "executable" and "symlink" permissions |
| 712 | ** directly from the filesystem. On windows, permissions are |
| 713 | ** unchanged from the original. |
| 714 | */ |
| 715 | { |
| 716 | int mPerm; |
| 717 | |
| 718 | mPerm = file_wd_perm(blob_str(&filename)); |
| 719 | isExe = ( mPerm==PERM_EXE ); |
| 720 | isLink = ( mPerm==PERM_LNK ); |
| 721 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -708,13 +708,14 @@ | |
| 708 | blob_append(&filename, zName, -1); |
| 709 | |
| 710 | #if !defined(_WIN32) |
| 711 | /* For unix, extract the "executable" and "symlink" permissions |
| 712 | ** directly from the filesystem. On windows, permissions are |
| 713 | ** unchanged from the original. However, only do this if the file |
| 714 | ** itself is actually selected to be part of this check-in. |
| 715 | */ |
| 716 | if( isSelected ){ |
| 717 | int mPerm; |
| 718 | |
| 719 | mPerm = file_wd_perm(blob_str(&filename)); |
| 720 | isExe = ( mPerm==PERM_EXE ); |
| 721 | isLink = ( mPerm==PERM_LNK ); |
| 722 |