Fossil SCM
Add the -nosync option to the "open" command. We might consider making -nosync the default for "open".
Commit
ec82a32b8010ec0d4f579fc37a57665e612a5ada
Parent
2d581c03e53e465…
2 files changed
+1
+1
-1
M
src/db.c
+1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1026,10 +1026,11 @@ | ||
| 1026 | 1026 | */ |
| 1027 | 1027 | void cmd_open(void){ |
| 1028 | 1028 | Blob path; |
| 1029 | 1029 | int vid; |
| 1030 | 1030 | static char *azNewArgv[] = { 0, "update", "--latest", 0 }; |
| 1031 | + url_proxy_options(); | |
| 1031 | 1032 | if( g.argc!=3 ){ |
| 1032 | 1033 | usage("REPOSITORY-FILENAME"); |
| 1033 | 1034 | } |
| 1034 | 1035 | if( db_open_local() ){ |
| 1035 | 1036 | fossil_panic("already within an open tree rooted at %s", g.zLocalRoot); |
| 1036 | 1037 |
| --- 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 @@ | ||
| 148 | 148 | ** --proxy URL|off |
| 149 | 149 | ** |
| 150 | 150 | */ |
| 151 | 151 | void url_proxy_options(void){ |
| 152 | 152 | 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; | |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | /* |
| 157 | 157 | ** If the "proxy" setting is defined, then change the URL to refer |
| 158 | 158 | ** to the proxy server. |
| 159 | 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 | 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 |