version 1.96, 2007/06/28 21:38:09 |
version 1.97, 2007/07/03 13:22:42 |
|
|
|
|
extern int prune_dirs; |
extern int prune_dirs; |
extern int build_dirs; |
extern int build_dirs; |
extern int reset_stickies; |
|
extern char *tag; |
|
|
|
static int flags = CR_REPO | CR_RECURSE_DIRS; |
static int flags = CR_REPO | CR_RECURSE_DIRS; |
|
|
|
|
case 'R': |
case 'R': |
break; |
break; |
case 'r': |
case 'r': |
tag = xstrdup(optarg); |
cvs_specified_tag = optarg; |
break; |
break; |
default: |
default: |
fatal("%s", cvs_cmd_checkout.cmd_synopsis); |
fatal("%s", cvs_cmd_checkout.cmd_synopsis); |
|
|
if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { |
if (current_cvsroot->cr_method != CVS_METHOD_LOCAL) { |
cvs_client_connect_to_server(); |
cvs_client_connect_to_server(); |
|
|
if (tag != NULL) |
if (cvs_specified_tag != NULL) |
cvs_client_send_request("Argument -r%s", tag); |
cvs_client_send_request("Argument -r%s", |
|
cvs_specified_tag); |
if (reset_stickies == 1) |
if (reset_stickies == 1) |
cvs_client_send_request("Argument -A"); |
cvs_client_send_request("Argument -A"); |
|
|
|
|
argv[i]); |
argv[i]); |
continue; |
continue; |
} |
} |
cvs_mkpath(argv[i]); |
|
|
cvs_mkpath(argv[i], cvs_specified_tag); |
checkout_repository(repo, argv[i]); |
checkout_repository(repo, argv[i]); |
} |
} |
} |
} |
|
|
CVSENTRIES *ent; |
CVSENTRIES *ent; |
struct timeval tv[2]; |
struct timeval tv[2]; |
char *tosend; |
char *tosend; |
char template[MAXPATHLEN], *p, entry[CVS_ENT_MAXLINELEN]; |
char template[MAXPATHLEN], entry[CVS_ENT_MAXLINELEN]; |
char kbuf[8], stickytag[32], rev[CVS_REV_BUFSZ]; |
char kbuf[8], stickytag[32], rev[CVS_REV_BUFSZ]; |
char timebuf[CVS_TIME_BUFSZ], tbuf[CVS_TIME_BUFSZ]; |
char timebuf[CVS_TIME_BUFSZ], tbuf[CVS_TIME_BUFSZ]; |
|
|
|
|
} |
} |
|
|
if (co_flags & CO_SETSTICKY) |
if (co_flags & CO_SETSTICKY) |
if (tag != NULL) |
if (cvs_specified_tag != NULL) |
(void)xsnprintf(stickytag, sizeof(stickytag), "T%s", |
(void)xsnprintf(stickytag, sizeof(stickytag), "T%s", |
tag); |
cvs_specified_tag); |
else |
else |
(void)xsnprintf(stickytag, sizeof(stickytag), "T%s", |
(void)xsnprintf(stickytag, sizeof(stickytag), "T%s", |
rev); |
rev); |
|
|
cvs_ent_close(ent, ENT_SYNC); |
cvs_ent_close(ent, ENT_SYNC); |
} |
} |
} else { |
} else { |
if ((p = strrchr(cf->file_rpath, ',')) != NULL) |
|
*p = '\0'; |
|
|
|
if (co_flags & CO_MERGE) { |
if (co_flags & CO_MERGE) { |
cvs_merge_file(cf, 1); |
cvs_merge_file(cf, 1); |
tosend = cf->file_path; |
tosend = cf->file_path; |
|
|
cvs_worklist_unlink); |
cvs_worklist_unlink); |
} |
} |
} |
} |
|
|
if (p != NULL) |
|
*p = ','; |
|
} |
} |
} |
} |