Fossil SCM
A few more places where Cygwin should do the same as win32.
Commit
8cc71be05f1f64ca1e3aa2646a4c317daeebc845
Parent
9e602271f42b248…
2 files changed
+1
-1
+2
-2
+1
-1
| --- src/add.c | ||
| +++ src/add.c | ||
| @@ -262,11 +262,11 @@ | ||
| 262 | 262 | if( vid==0 ){ |
| 263 | 263 | fossil_panic("no checkout to add to"); |
| 264 | 264 | } |
| 265 | 265 | db_begin_transaction(); |
| 266 | 266 | db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)"); |
| 267 | -#if defined(_WIN32) | |
| 267 | +#if defined(_WIN32) || defined(__CYGWIN__) | |
| 268 | 268 | db_multi_exec( |
| 269 | 269 | "CREATE INDEX IF NOT EXISTS vfile_pathname " |
| 270 | 270 | " ON vfile(pathname COLLATE nocase)" |
| 271 | 271 | ); |
| 272 | 272 | #endif |
| 273 | 273 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -262,11 +262,11 @@ | |
| 262 | if( vid==0 ){ |
| 263 | fossil_panic("no checkout to add to"); |
| 264 | } |
| 265 | db_begin_transaction(); |
| 266 | db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)"); |
| 267 | #if defined(_WIN32) |
| 268 | db_multi_exec( |
| 269 | "CREATE INDEX IF NOT EXISTS vfile_pathname " |
| 270 | " ON vfile(pathname COLLATE nocase)" |
| 271 | ); |
| 272 | #endif |
| 273 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -262,11 +262,11 @@ | |
| 262 | if( vid==0 ){ |
| 263 | fossil_panic("no checkout to add to"); |
| 264 | } |
| 265 | db_begin_transaction(); |
| 266 | db_multi_exec("CREATE TEMP TABLE sfile(x TEXT PRIMARY KEY)"); |
| 267 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 268 | db_multi_exec( |
| 269 | "CREATE INDEX IF NOT EXISTS vfile_pathname " |
| 270 | " ON vfile(pathname COLLATE nocase)" |
| 271 | ); |
| 272 | #endif |
| 273 |
M
src/db.c
+2
-2
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -824,11 +824,11 @@ | ||
| 824 | 824 | if( access(zHome, W_OK) ){ |
| 825 | 825 | fossil_fatal("home directory %s must be writeable", zHome); |
| 826 | 826 | } |
| 827 | 827 | #endif |
| 828 | 828 | g.zHome = mprintf("%/", zHome); |
| 829 | -#if defined(_WIN32) | |
| 829 | +#if defined(_WIN32) || defined(__CYGWIN__) | |
| 830 | 830 | /* . filenames give some window systems problems and many apps problems */ |
| 831 | 831 | zDbName = mprintf("%//_fossil", zHome); |
| 832 | 832 | #else |
| 833 | 833 | zDbName = mprintf("%s/.fossil", zHome); |
| 834 | 834 | #endif |
| @@ -1981,11 +1981,11 @@ | ||
| 1981 | 1981 | if( !allowNested && db_open_local() ){ |
| 1982 | 1982 | fossil_panic("already within an open tree rooted at %s", g.zLocalRoot); |
| 1983 | 1983 | } |
| 1984 | 1984 | file_canonical_name(g.argv[2], &path, 0); |
| 1985 | 1985 | db_open_repository(blob_str(&path)); |
| 1986 | -#if defined(_WIN32) | |
| 1986 | +#if defined(_WIN32) || defined(__CYGWIN__) | |
| 1987 | 1987 | # define LOCALDB_NAME "./_FOSSIL_" |
| 1988 | 1988 | #else |
| 1989 | 1989 | # define LOCALDB_NAME "./.fslckout" |
| 1990 | 1990 | #endif |
| 1991 | 1991 | db_init_database(LOCALDB_NAME, zLocalSchema, |
| 1992 | 1992 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -824,11 +824,11 @@ | |
| 824 | if( access(zHome, W_OK) ){ |
| 825 | fossil_fatal("home directory %s must be writeable", zHome); |
| 826 | } |
| 827 | #endif |
| 828 | g.zHome = mprintf("%/", zHome); |
| 829 | #if defined(_WIN32) |
| 830 | /* . filenames give some window systems problems and many apps problems */ |
| 831 | zDbName = mprintf("%//_fossil", zHome); |
| 832 | #else |
| 833 | zDbName = mprintf("%s/.fossil", zHome); |
| 834 | #endif |
| @@ -1981,11 +1981,11 @@ | |
| 1981 | if( !allowNested && db_open_local() ){ |
| 1982 | fossil_panic("already within an open tree rooted at %s", g.zLocalRoot); |
| 1983 | } |
| 1984 | file_canonical_name(g.argv[2], &path, 0); |
| 1985 | db_open_repository(blob_str(&path)); |
| 1986 | #if defined(_WIN32) |
| 1987 | # define LOCALDB_NAME "./_FOSSIL_" |
| 1988 | #else |
| 1989 | # define LOCALDB_NAME "./.fslckout" |
| 1990 | #endif |
| 1991 | db_init_database(LOCALDB_NAME, zLocalSchema, |
| 1992 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -824,11 +824,11 @@ | |
| 824 | if( access(zHome, W_OK) ){ |
| 825 | fossil_fatal("home directory %s must be writeable", zHome); |
| 826 | } |
| 827 | #endif |
| 828 | g.zHome = mprintf("%/", zHome); |
| 829 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 830 | /* . filenames give some window systems problems and many apps problems */ |
| 831 | zDbName = mprintf("%//_fossil", zHome); |
| 832 | #else |
| 833 | zDbName = mprintf("%s/.fossil", zHome); |
| 834 | #endif |
| @@ -1981,11 +1981,11 @@ | |
| 1981 | if( !allowNested && db_open_local() ){ |
| 1982 | fossil_panic("already within an open tree rooted at %s", g.zLocalRoot); |
| 1983 | } |
| 1984 | file_canonical_name(g.argv[2], &path, 0); |
| 1985 | db_open_repository(blob_str(&path)); |
| 1986 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 1987 | # define LOCALDB_NAME "./_FOSSIL_" |
| 1988 | #else |
| 1989 | # define LOCALDB_NAME "./.fslckout" |
| 1990 | #endif |
| 1991 | db_init_database(LOCALDB_NAME, zLocalSchema, |
| 1992 |