Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | In the "remote-url" command, omit the userid and password from the URL unless the "--show-pw" command-line option is used. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
9cbef7a104e5d6168895a1ab99ad0a68 |
| User & Date: | drh 2009-08-13 14:36:54.000 |
Context
|
2009-08-14
| ||
| 14:00 | Improvements to the way the update target is computed when saying "fossil update" without specifying what to update to. Avoid the "bad object id: 0" error. ... (check-in: 7847b418bb user: drh tags: trunk) | |
|
2009-08-13
| ||
| 14:36 | In the "remote-url" command, omit the userid and password from the URL unless the "--show-pw" command-line option is used. ... (check-in: 9cbef7a104 user: drh tags: trunk) | |
| 14:27 | Disconnect the global configuration database in ~/.fossil from the respository database in most cases. This allows multiple "sync" or "commit" operations to be running on different repositories at the same time. ... (check-in: 00ac7945a9 user: drh tags: trunk) | |
Changes
Changes to src/sync.c.
| ︙ | ︙ | |||
152 153 154 155 156 157 158 | process_sync_args(); client_sync(1,1,0,0,0); } /* ** COMMAND: remote-url ** | | | | < < > > | > > > > > > > > > | 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
process_sync_args();
client_sync(1,1,0,0,0);
}
/*
** COMMAND: remote-url
**
** Usage: %fossil remote-url ?URL|off? --show-pw
**
** Query and optional change the default server named used for syncing
** the current check-out.
**
** The userid and password are stripped from the URL and are not printed
** unless the --show-pw option is used on the command-line.
**
** The remote-url is set automatically by a "clone" command or by any
** "sync", "push", or "pull" command that specifies an explicit URL.
** The default remote-url is used by auto-syncing and by "sync", "push",
** "pull" that omit the server URL.
*/
void remote_url_cmd(void){
char *zUrl;
int showPw = find_option("show-pw",0,0)!=0;
db_must_be_within_tree();
if( g.argc!=2 && g.argc!=3 ){
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);
}
|