version 1.49, 2006/01/30 17:58:47 |
version 1.50, 2006/01/31 13:55:20 |
|
|
co_mods = argv; |
co_mods = argv; |
co_nmod = argc; |
co_nmod = argc; |
|
|
if ((statmod == 0) && (argc == 0)) { |
if ((statmod == 0) && (argc == 0)) |
cvs_log(LP_ABORT, |
fatal("must specify at least one module or directory"); |
"must specify at least one module or directory"); |
|
return (-1); |
|
} |
|
|
|
if (statmod && (argc > 0)) { |
if (statmod && (argc > 0)) |
cvs_log(LP_ABORT, "-c and -s must not get any arguments"); |
fatal("-c and -s must not get any arguments"); |
return (-1); |
|
} |
|
|
|
/* `export' command exceptions */ |
/* `export' command exceptions */ |
if (cvs_cmdop == CVS_OP_EXPORT) { |
if (cvs_cmdop == CVS_OP_EXPORT) { |
if (!tag && !date) { |
if (!tag && !date) |
cvs_log(LP_ABORT, "must specify a tag or date"); |
fatal("must specify a tag or date"); |
return (-1); |
|
} |
|
|
|
/* we don't want numerical revisions here */ |
/* we don't want numerical revisions here */ |
if (tag && (rcs = rcsnum_parse(tag)) != NULL) { |
if (tag && (rcs = rcsnum_parse(tag)) != NULL) |
cvs_log(LP_ABORT, "tag `%s' must be a symbolic tag", |
fatal("tag `%s' must be a symbolic tag", tag); |
tag); |
|
rcsnum_free(rcs); |
|
return (-1); |
|
} |
|
} |
} |
|
|
*arg = optind; |
*arg = optind; |