Fossil

Check-in [340cee03ee]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix operations by Cygwin fossil on a checkout done earlier by Win32 fossil.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 340cee03ee310a3b8ff604f742a9734404dbd5e1
User & Date: jan.nijtmans 2013-07-24 08:14:42.686
Context
2013-07-24
08:48
Always use lowercase drive-letter in /cygdrive paths check-in: 59c22194bc user: jan.nijtmans tags: trunk
08:14
Fix operations by Cygwin fossil on a checkout done earlier by Win32 fossil. check-in: 340cee03ee user: jan.nijtmans tags: trunk
07:00
Fix operation of "./configure --disable-internal-sqlite" check-in: e1eb7aa88d user: jan.nijtmans tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
710
711
712
713
714
715
716






717
718
719
720
721
722
723
** connection.  An error results in process abort.
*/
LOCAL sqlite3 *db_open(const char *zDbName){
  int rc;
  const char *zVfs;
  sqlite3 *db;







  if( g.fSqlTrace ) fossil_trace("-- sqlite3_open: [%s]\n", zDbName);
  zVfs = fossil_getenv("FOSSIL_VFS");
  rc = sqlite3_open_v2(
       zDbName, &db,
       SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
       zVfs
  );







>
>
>
>
>
>







710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
** connection.  An error results in process abort.
*/
LOCAL sqlite3 *db_open(const char *zDbName){
  int rc;
  const char *zVfs;
  sqlite3 *db;

#if defined(__CYGWIN__)
  if( (fossil_isalpha(zDbName[0]) && zDbName[1]==':'
          && (zDbName[2]=='\\' || zDbName[2]=='/')) ) {
    zDbName = mprintf("/cygdrive/%c/%s", zDbName[0], zDbName+3);
  }
#endif
  if( g.fSqlTrace ) fossil_trace("-- sqlite3_open: [%s]\n", zDbName);
  zVfs = fossil_getenv("FOSSIL_VFS");
  rc = sqlite3_open_v2(
       zDbName, &db,
       SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
       zVfs
  );
1018
1019
1020
1021
1022
1023
1024







1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
    }else{
#ifdef FOSSIL_ENABLE_JSON
      g.json.resultCode = FSL_JSON_E_DB_NOT_VALID;
#endif
      fossil_panic("not a valid repository: %s", zDbName);
    }
  }







  db_open_or_attach(zDbName, "repository", 0);
  g.repositoryOpen = 1;
  g.zRepositoryName = mprintf("%s", zDbName);
  /* Cache "allow-symlinks" option, because we'll need it on every stat call */
  g.allowSymlinks = db_get_boolean("allow-symlinks", 0);
}

/*
** Flags for the db_find_and_open_repository() function.
*/







>
>
>
>
>
>
>
|

<







1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039

1040
1041
1042
1043
1044
1045
1046
    }else{
#ifdef FOSSIL_ENABLE_JSON
      g.json.resultCode = FSL_JSON_E_DB_NOT_VALID;
#endif
      fossil_panic("not a valid repository: %s", zDbName);
    }
  }
#if defined(__CYGWIN__)
  if( (fossil_isalpha(zDbName[0]) && zDbName[1]==':'
          && (zDbName[2]=='\\' || zDbName[2]=='/')) ) {
    g.zRepositoryName = mprintf("/cygdrive/%c/%s", zDbName[0], zDbName+3);
  } else
#endif
  g.zRepositoryName = mprintf("%s", zDbName);
  db_open_or_attach(g.zRepositoryName, "repository", 0);
  g.repositoryOpen = 1;

  /* Cache "allow-symlinks" option, because we'll need it on every stat call */
  g.allowSymlinks = db_get_boolean("allow-symlinks", 0);
}

/*
** Flags for the db_find_and_open_repository() function.
*/