Fossil

Check-in [ec82a32b]
Login

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

Overview
Comment:Add the -nosync option to the "open" command. We might consider making -nosync the default for "open".
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ec82a32b8010ec0d4f579fc37a57665e612a5ada
User & Date: drh 2008-05-10 18:19:03
Context
2008-05-13
00:19
Use the SCRIPT_NAME environment variable rather than REQUEST_URI to find the base name of the CGI script. check-in: c2346946 user: drh tags: trunk
2008-05-10
18:19
Add the -nosync option to the "open" command. We might consider making -nosync the default for "open". check-in: ec82a32b user: drh tags: trunk
18:09
Comment changes to the pre-commit verification logic. No changes to code. check-in: 2d581c03 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

1024
1025
1026
1027
1028
1029
1030

1031
1032
1033
1034
1035
1036
1037
** for the repository is created with its root at the working directory.
** See also the "close" command.
*/
void cmd_open(void){
  Blob path;
  int vid;
  static char *azNewArgv[] = { 0, "update", "--latest", 0 };

  if( g.argc!=3 ){
    usage("REPOSITORY-FILENAME");
  }
  if( db_open_local() ){
    fossil_panic("already within an open tree rooted at %s", g.zLocalRoot);
  }
  file_canonical_name(g.argv[2], &path);







>







1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
** for the repository is created with its root at the working directory.
** See also the "close" command.
*/
void cmd_open(void){
  Blob path;
  int vid;
  static char *azNewArgv[] = { 0, "update", "--latest", 0 };
  url_proxy_options();
  if( g.argc!=3 ){
    usage("REPOSITORY-FILENAME");
  }
  if( db_open_local() ){
    fossil_panic("already within an open tree rooted at %s", g.zLocalRoot);
  }
  file_canonical_name(g.argv[2], &path);

Changes to src/url.c.

146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
** Extra any proxy options from the command-line.
**
**    --proxy URL|off
**
*/
void url_proxy_options(void){
  zProxyOpt = find_option("proxy", 0, 1);
  g.fNoSync = find_option("nosync", 0, 0)!=0;
}

/*
** If the "proxy" setting is defined, then change the URL to refer
** to the proxy server.
*/
void url_enable_proxy(const char *zMsg){







|







146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
** Extra any proxy options from the command-line.
**
**    --proxy URL|off
**
*/
void url_proxy_options(void){
  zProxyOpt = find_option("proxy", 0, 1);
  if( find_option("nosync",0,0) ) g.fNoSync = 1;
}

/*
** If the "proxy" setting is defined, then change the URL to refer
** to the proxy server.
*/
void url_enable_proxy(const char *zMsg){