Fossil SCM

Since file_simplify_name() already was modified to handle the extended path prefix correctly [95f004b1c535c545], this special Cygwin handling is no longer necessary.

jan.nijtmans 2014-03-18 15:59 UTC trunk
Commit e35dbea1e33c93ba4d1d3646583e1945687a1775
1 file changed -4
-4
--- src/db.c
+++ src/db.c
@@ -1022,15 +1022,11 @@
10221022
g.json.resultCode = FSL_JSON_E_DB_NOT_VALID;
10231023
#endif
10241024
fossil_panic("not a valid repository: %s", zDbName);
10251025
}
10261026
}
1027
-#if defined(__CYGWIN__)
1028
- g.zRepositoryName = fossil_utf8_to_filename(zDbName);
1029
-#else
10301027
g.zRepositoryName = mprintf("%s", zDbName);
1031
-#endif
10321028
db_open_or_attach(g.zRepositoryName, "repository", 0);
10331029
g.repositoryOpen = 1;
10341030
/* Cache "allow-symlinks" option, because we'll need it on every stat call */
10351031
g.allowSymlinks = db_get_boolean("allow-symlinks", 0);
10361032
}
10371033
--- src/db.c
+++ src/db.c
@@ -1022,15 +1022,11 @@
1022 g.json.resultCode = FSL_JSON_E_DB_NOT_VALID;
1023 #endif
1024 fossil_panic("not a valid repository: %s", zDbName);
1025 }
1026 }
1027 #if defined(__CYGWIN__)
1028 g.zRepositoryName = fossil_utf8_to_filename(zDbName);
1029 #else
1030 g.zRepositoryName = mprintf("%s", zDbName);
1031 #endif
1032 db_open_or_attach(g.zRepositoryName, "repository", 0);
1033 g.repositoryOpen = 1;
1034 /* Cache "allow-symlinks" option, because we'll need it on every stat call */
1035 g.allowSymlinks = db_get_boolean("allow-symlinks", 0);
1036 }
1037
--- src/db.c
+++ src/db.c
@@ -1022,15 +1022,11 @@
1022 g.json.resultCode = FSL_JSON_E_DB_NOT_VALID;
1023 #endif
1024 fossil_panic("not a valid repository: %s", zDbName);
1025 }
1026 }
 
 
 
1027 g.zRepositoryName = mprintf("%s", zDbName);
 
1028 db_open_or_attach(g.zRepositoryName, "repository", 0);
1029 g.repositoryOpen = 1;
1030 /* Cache "allow-symlinks" option, because we'll need it on every stat call */
1031 g.allowSymlinks = db_get_boolean("allow-symlinks", 0);
1032 }
1033

Keyboard Shortcuts

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