Fossil SCM
Add missing comment describing how settings are read while opening a checkout.
Commit
f7f6ea818a676209d22dc6609e6d149a551570b6
Parent
ebbff96276f8d5d…
1 file changed
+2
M
src/db.c
+2
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1920,10 +1920,12 @@ | ||
| 1920 | 1920 | blob_zero(&versionedPathname); |
| 1921 | 1921 | blob_zero(&setting); |
| 1922 | 1922 | blob_appendf(&versionedPathname, "%s.fossil-settings/%s", |
| 1923 | 1923 | g.zLocalRoot, zName); |
| 1924 | 1924 | if( !g.localOpen ){ |
| 1925 | + /* Repository is in the process of being opened, but files have not been | |
| 1926 | + * written to disk. Load from the database. */ | |
| 1925 | 1927 | Blob noWarnFile; |
| 1926 | 1928 | if( historical_version_of_file(g.zOpenRevision, |
| 1927 | 1929 | blob_str(&versionedPathname), |
| 1928 | 1930 | &setting, 0, 0, 0, 2)!=2 ){ |
| 1929 | 1931 | found = 1; |
| 1930 | 1932 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1920,10 +1920,12 @@ | |
| 1920 | blob_zero(&versionedPathname); |
| 1921 | blob_zero(&setting); |
| 1922 | blob_appendf(&versionedPathname, "%s.fossil-settings/%s", |
| 1923 | g.zLocalRoot, zName); |
| 1924 | if( !g.localOpen ){ |
| 1925 | Blob noWarnFile; |
| 1926 | if( historical_version_of_file(g.zOpenRevision, |
| 1927 | blob_str(&versionedPathname), |
| 1928 | &setting, 0, 0, 0, 2)!=2 ){ |
| 1929 | found = 1; |
| 1930 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1920,10 +1920,12 @@ | |
| 1920 | blob_zero(&versionedPathname); |
| 1921 | blob_zero(&setting); |
| 1922 | blob_appendf(&versionedPathname, "%s.fossil-settings/%s", |
| 1923 | g.zLocalRoot, zName); |
| 1924 | if( !g.localOpen ){ |
| 1925 | /* Repository is in the process of being opened, but files have not been |
| 1926 | * written to disk. Load from the database. */ |
| 1927 | Blob noWarnFile; |
| 1928 | if( historical_version_of_file(g.zOpenRevision, |
| 1929 | blob_str(&versionedPathname), |
| 1930 | &setting, 0, 0, 0, 2)!=2 ){ |
| 1931 | found = 1; |
| 1932 |