Fossil SCM

Add the -nosync option to the "open" command. We might consider making -nosync the default for "open".

drh 2008-05-10 18:19 trunk
Commit ec82a32b8010ec0d4f579fc37a57665e612a5ada
2 files changed +1 +1 -1
+1
--- src/db.c
+++ src/db.c
@@ -1026,10 +1026,11 @@
10261026
*/
10271027
void cmd_open(void){
10281028
Blob path;
10291029
int vid;
10301030
static char *azNewArgv[] = { 0, "update", "--latest", 0 };
1031
+ url_proxy_options();
10311032
if( g.argc!=3 ){
10321033
usage("REPOSITORY-FILENAME");
10331034
}
10341035
if( db_open_local() ){
10351036
fossil_panic("already within an open tree rooted at %s", g.zLocalRoot);
10361037
--- src/db.c
+++ src/db.c
@@ -1026,10 +1026,11 @@
1026 */
1027 void cmd_open(void){
1028 Blob path;
1029 int vid;
1030 static char *azNewArgv[] = { 0, "update", "--latest", 0 };
 
1031 if( g.argc!=3 ){
1032 usage("REPOSITORY-FILENAME");
1033 }
1034 if( db_open_local() ){
1035 fossil_panic("already within an open tree rooted at %s", g.zLocalRoot);
1036
--- src/db.c
+++ src/db.c
@@ -1026,10 +1026,11 @@
1026 */
1027 void cmd_open(void){
1028 Blob path;
1029 int vid;
1030 static char *azNewArgv[] = { 0, "update", "--latest", 0 };
1031 url_proxy_options();
1032 if( g.argc!=3 ){
1033 usage("REPOSITORY-FILENAME");
1034 }
1035 if( db_open_local() ){
1036 fossil_panic("already within an open tree rooted at %s", g.zLocalRoot);
1037
+1 -1
--- src/url.c
+++ src/url.c
@@ -148,11 +148,11 @@
148148
** --proxy URL|off
149149
**
150150
*/
151151
void url_proxy_options(void){
152152
zProxyOpt = find_option("proxy", 0, 1);
153
- g.fNoSync = find_option("nosync", 0, 0)!=0;
153
+ if( find_option("nosync",0,0) ) g.fNoSync = 1;
154154
}
155155
156156
/*
157157
** If the "proxy" setting is defined, then change the URL to refer
158158
** to the proxy server.
159159
--- src/url.c
+++ src/url.c
@@ -148,11 +148,11 @@
148 ** --proxy URL|off
149 **
150 */
151 void url_proxy_options(void){
152 zProxyOpt = find_option("proxy", 0, 1);
153 g.fNoSync = find_option("nosync", 0, 0)!=0;
154 }
155
156 /*
157 ** If the "proxy" setting is defined, then change the URL to refer
158 ** to the proxy server.
159
--- src/url.c
+++ src/url.c
@@ -148,11 +148,11 @@
148 ** --proxy URL|off
149 **
150 */
151 void url_proxy_options(void){
152 zProxyOpt = find_option("proxy", 0, 1);
153 if( find_option("nosync",0,0) ) g.fNoSync = 1;
154 }
155
156 /*
157 ** If the "proxy" setting is defined, then change the URL to refer
158 ** to the proxy server.
159

Keyboard Shortcuts

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