Fossil

Check-in [11ecd5c0]
Login

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

Overview
Comment:Fix the "remote-url" command so that it preserves the userid and password. Ticket [68c7f7bee951302].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 11ecd5c0b512fdea2565a133e9dec19c4ba81e27
User & Date: drh 2009-10-31 14:03:49
References
2009-10-31
14:08 Fixed ticket [68c7f7be]: remote-url command doesn't persist username and password plus 2 other changes artifact: cc60a72d user: drh
Context
2009-10-31
15:07
Add an "finfo" command to give file history. check-in: 8c8f8616 user: drh tags: trunk
14:03
Fix the "remote-url" command so that it preserves the userid and password. Ticket [68c7f7bee951302]. check-in: 11ecd5c0 user: drh tags: trunk
13:50
Fix the "Behavior" setup page so that it has the correct default values for unspecified attributes. Ticket [0101a97fefd5ca91d] check-in: 671e7c34 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sync.c.

181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
    usage("remote-url ?URL|off?");
  }
  if( g.argc==3 ){
    if( strcmp(g.argv[2],"off")==0 ){
      db_unset("last-sync-url", 0);
    }else{
      url_parse(g.argv[2]);
      db_set("last-sync-url", g.urlCanonical, 0);
    }
  }
  zUrl = db_get("last-sync-url", 0);
  if( zUrl==0 ){
    printf("off\n");
    return;
  }else if( showPw ){
    g.urlCanonical = zUrl;
  }else{
    url_parse(zUrl);
  }
  printf("%s\n", g.urlCanonical);
}







|













181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
    usage("remote-url ?URL|off?");
  }
  if( g.argc==3 ){
    if( strcmp(g.argv[2],"off")==0 ){
      db_unset("last-sync-url", 0);
    }else{
      url_parse(g.argv[2]);
      db_set("last-sync-url", g.urlIsFile ? g.urlCanonical : g.argv[2], 0);
    }
  }
  zUrl = db_get("last-sync-url", 0);
  if( zUrl==0 ){
    printf("off\n");
    return;
  }else if( showPw ){
    g.urlCanonical = zUrl;
  }else{
    url_parse(zUrl);
  }
  printf("%s\n", g.urlCanonical);
}