version 1.92, 2007/02/22 06:42:09 |
version 1.93, 2007/06/01 17:47:47 |
|
|
extern int prune_dirs; |
extern int prune_dirs; |
extern int build_dirs; |
extern int build_dirs; |
extern int reset_stickies; |
extern int reset_stickies; |
|
extern char *tag; |
|
|
static int flags = CR_REPO | CR_RECURSE_DIRS; |
static int flags = CR_REPO | CR_RECURSE_DIRS; |
|
|
|
|
break; |
break; |
case 'R': |
case 'R': |
break; |
break; |
|
case 'r': |
|
tag = xstrdup(optarg); |
|
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) |
|
cvs_client_send_request("Argument -r%s", tag); |
if (reset_stickies == 1) |
if (reset_stickies == 1) |
cvs_client_send_request("Argument -A"); |
cvs_client_send_request("Argument -A"); |
|
|
|
|
} |
} |
|
|
if (co_flags & CO_SETSTICKY) |
if (co_flags & CO_SETSTICKY) |
(void)xsnprintf(stickytag, sizeof(stickytag), "T%s", rev); |
if (tag != NULL) |
|
(void)xsnprintf(stickytag, sizeof(stickytag), "T%s", |
|
tag); |
|
else |
|
(void)xsnprintf(stickytag, sizeof(stickytag), "T%s", |
|
rev); |
else |
else |
stickytag[0] = '\0'; |
stickytag[0] = '\0'; |
|
|