Diff
Not logged in

Differences From:

File src/db.c part of check-in [1d280a85aa] - Take care that the root directory name does not have extra "/" characters. Ticket 9c378ed139. by drh on 2008-10-31 13:33:36. [view]

To:

File src/db.c part of check-in [b54de50ac5] - Update for making mycfg.exe. WARNING: This is an incompatible change. Do not use this branch of development to build a copy of fossil that needs to interoperate with official releases. by urmil on 2008-11-03 09:55:46. [view]

@@ -29,9 +29,9 @@
 **    (1)  The "user" database in ~/.fossil
 **
 **    (2)  The "repository" database
 **
-**    (3)  A local checkout database named "_FOSSIL_" or ".fos"
+**    (3)  A local checkout database named "_MYCFG_" or ".fos"
 **         and located at the root of the local copy of the source tree.
 **
 */
 #include "config.h"
@@ -602,25 +602,25 @@
 }
 
 /*
 ** Locate the root directory of the local repository tree.  The root
-** directory is found by searching for a file named "_FOSSIL_" or ".fos"
+** directory is found by searching for a file named "_MYCFG_" or ".fos"
 ** that contains a valid repository database.
 **
-** If no valid _FOSSIL_ or .fos file is found, we move up one level and
+** If no valid _MYCFG_ or .fos file is found, we move up one level and
 ** try again. Once the file is found, the g.zLocalRoot variable is set
 ** to the root of the repository tree and this routine returns 1.  If
 ** no database is found, then this routine return 0.
 **
 ** This routine always opens the user database regardless of whether or
-** not the repository database is found.  If the _FOSSIL_ or .fos file
+** not the repository database is found.  If the _MYCFG_ or .fos file
 ** is found, it is attached to the open database connection too.
 */
 int db_open_local(void){
   int i, n;
   char zPwd[2000];
   char *zPwdConv;
-  static const char *aDbName[] = { "/_FOSSIL_", "/.fos" };
+  static const char *aDbName[] = { "/_MYCFG_", "/.fos" };
 
   if( g.localOpen) return 1;
   if( getcwd(zPwd, sizeof(zPwd)-20)==0 ){
     db_err("pwd too big: max %d", sizeof(zPwd)-20);
@@ -1140,9 +1140,9 @@
     fossil_panic("already within an open tree rooted at %s", g.zLocalRoot);
   }
   file_canonical_name(g.argv[2], &path);
   db_open_repository(blob_str(&path));
-  db_init_database("./_FOSSIL_", zLocalSchema, (char*)0);
+  db_init_database("./_MYCFG_", zLocalSchema, (char*)0);
   db_open_local();
   db_lset("repository", blob_str(&path));
   db_record_repository_filename(blob_str(&path));
   vid = db_int(0, "SELECT pid FROM plink y"