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.

drh 2012-09-27 21:16 trunk merge
Commit a0da8b3873071649c5007424366d75b2e3b60a2c
2 files changed +3 -2 +3 -2
+3 -2
--- src/checkin.c
+++ src/checkin.c
@@ -708,13 +708,14 @@
708708
blob_append(&filename, zName, -1);
709709
710710
#if !defined(_WIN32)
711711
/* For unix, extract the "executable" and "symlink" permissions
712712
** 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.
714715
*/
715
- {
716
+ if( isSelected ){
716717
int mPerm;
717718
718719
mPerm = file_wd_perm(blob_str(&filename));
719720
isExe = ( mPerm==PERM_EXE );
720721
isLink = ( mPerm==PERM_LNK );
721722
--- 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 @@
708708
blob_append(&filename, zName, -1);
709709
710710
#if !defined(_WIN32)
711711
/* For unix, extract the "executable" and "symlink" permissions
712712
** 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.
714715
*/
715
- {
716
+ if( isSelected ){
716717
int mPerm;
717718
718719
mPerm = file_wd_perm(blob_str(&filename));
719720
isExe = ( mPerm==PERM_EXE );
720721
isLink = ( mPerm==PERM_LNK );
721722
--- 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

Keyboard Shortcuts

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