Fossil SCM
When the --reset option is used, reset the cached stat() information before and after dealing with it.
Commit
39ea7a2f6134c3c4a5f4f8b02bbd549382f0152f
Parent
996ebab71bd93ef…
1 file changed
+1
+1
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -1013,10 +1013,11 @@ | ||
| 1013 | 1013 | fossil_print(" file_isfile = %d\n", file_wd_isfile(zPath)); |
| 1014 | 1014 | fossil_print(" file_isfile_or_link = %d\n", file_wd_isfile_or_link(zPath)); |
| 1015 | 1015 | fossil_print(" file_islink = %d\n", file_wd_islink(zPath)); |
| 1016 | 1016 | fossil_print(" file_isexe = %d\n", file_wd_isexe(zPath)); |
| 1017 | 1017 | fossil_print(" file_isdir = %d\n", file_wd_isdir(zPath)); |
| 1018 | + if( reset ) resetStat(); | |
| 1018 | 1019 | } |
| 1019 | 1020 | } |
| 1020 | 1021 | |
| 1021 | 1022 | /* |
| 1022 | 1023 | ** COMMAND: test-file-environment |
| 1023 | 1024 |
| --- 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 |