Fossil SCM

Add missing comment describing how settings are read while opening a checkout.

andygoth 2015-05-15 02:11 trunk
Commit f7f6ea818a676209d22dc6609e6d149a551570b6
1 file changed +2
+2
--- src/db.c
+++ src/db.c
@@ -1920,10 +1920,12 @@
19201920
blob_zero(&versionedPathname);
19211921
blob_zero(&setting);
19221922
blob_appendf(&versionedPathname, "%s.fossil-settings/%s",
19231923
g.zLocalRoot, zName);
19241924
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. */
19251927
Blob noWarnFile;
19261928
if( historical_version_of_file(g.zOpenRevision,
19271929
blob_str(&versionedPathname),
19281930
&setting, 0, 0, 0, 2)!=2 ){
19291931
found = 1;
19301932
--- 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

Keyboard Shortcuts

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