Fossil SCM

When the --reset option is used, reset the cached stat() information before and after dealing with it.

mistachkin 2017-02-14 01:03 UTC symlinks
Commit 39ea7a2f6134c3c4a5f4f8b02bbd549382f0152f
1 file changed +1
+1
--- src/file.c
+++ src/file.c
@@ -1013,10 +1013,11 @@
10131013
fossil_print(" file_isfile = %d\n", file_wd_isfile(zPath));
10141014
fossil_print(" file_isfile_or_link = %d\n", file_wd_isfile_or_link(zPath));
10151015
fossil_print(" file_islink = %d\n", file_wd_islink(zPath));
10161016
fossil_print(" file_isexe = %d\n", file_wd_isexe(zPath));
10171017
fossil_print(" file_isdir = %d\n", file_wd_isdir(zPath));
1018
+ if( reset ) resetStat();
10181019
}
10191020
}
10201021
10211022
/*
10221023
** COMMAND: test-file-environment
10231024
--- src/file.c
+++ src/file.c
@@ -1013,10 +1013,11 @@
1013 fossil_print(" file_isfile = %d\n", file_wd_isfile(zPath));
1014 fossil_print(" file_isfile_or_link = %d\n", file_wd_isfile_or_link(zPath));
1015 fossil_print(" file_islink = %d\n", file_wd_islink(zPath));
1016 fossil_print(" file_isexe = %d\n", file_wd_isexe(zPath));
1017 fossil_print(" file_isdir = %d\n", file_wd_isdir(zPath));
 
1018 }
1019 }
1020
1021 /*
1022 ** COMMAND: test-file-environment
1023
--- src/file.c
+++ src/file.c
@@ -1013,10 +1013,11 @@
1013 fossil_print(" file_isfile = %d\n", file_wd_isfile(zPath));
1014 fossil_print(" file_isfile_or_link = %d\n", file_wd_isfile_or_link(zPath));
1015 fossil_print(" file_islink = %d\n", file_wd_islink(zPath));
1016 fossil_print(" file_isexe = %d\n", file_wd_isexe(zPath));
1017 fossil_print(" file_isdir = %d\n", file_wd_isdir(zPath));
1018 if( reset ) resetStat();
1019 }
1020 }
1021
1022 /*
1023 ** COMMAND: test-file-environment
1024

Keyboard Shortcuts

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