494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
|
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
|
-
+
|
z = find_option("dest",0,1);
if( z ) zDest = fossil_strdup(z);
verify_all_options();
if( g.argc<3 || g.argc>4 ){
usage("URL ?VERSION? ?OPTIONS?");
}
zUrl = g.argv[2];
zVers = g.argc==4 ? g.argv[3] : db_get("main-branch", 0);
zVers = g.argc==4 ? g.argv[3] : db_main_branch();
/* Parse the URL of the repository */
url_parse(zUrl, 0);
/* Construct an appropriate name for the destination directory */
if( zDest==0 ){
int i;
|