version 1.29, 2005/10/15 19:45:23 |
version 1.30, 2005/10/15 21:33:21 |
|
|
case 'h': |
case 'h': |
(usage)(); |
(usage)(); |
exit(0); |
exit(0); |
|
case 'l': |
|
if (rcs_optarg != NULL) { |
|
if ((newrev = rcsnum_parse(rcs_optarg)) == NULL) { |
|
cvs_log(LP_ERR, "bad revision number"); |
|
exit(1); |
|
} |
|
} |
|
lkmode = LOCK_LOCK; |
|
break; |
case 'm': |
case 'm': |
rcs_msg = rcs_optarg; |
rcs_msg = rcs_optarg; |
interactive = 0; |
interactive = 0; |
|
|
case 'q': |
case 'q': |
verbose = 0; |
verbose = 0; |
break; |
break; |
case 'V': |
case 'r': |
printf("%s\n", rcs_version); |
rflag = 1; |
exit(0); |
|
case 'l': |
|
if (rcs_optarg != NULL) { |
if (rcs_optarg != NULL) { |
if ((newrev = rcsnum_parse(rcs_optarg)) == NULL) { |
if ((newrev = rcsnum_parse(rcs_optarg)) == NULL) { |
cvs_log(LP_ERR, "bad revision number"); |
cvs_log(LP_ERR, "bad revision number"); |
exit(1); |
exit(1); |
} |
} |
} |
} |
lkmode = LOCK_LOCK; |
|
break; |
break; |
case 'u': |
case 'u': |
if (rcs_optarg != NULL) { |
if (rcs_optarg != NULL) { |
|
|
} |
} |
lkmode = LOCK_UNLOCK; |
lkmode = LOCK_UNLOCK; |
break; |
break; |
case 'r': |
case 'V': |
rflag = 1; |
printf("%s\n", rcs_version); |
if (rcs_optarg != NULL) { |
exit(0); |
if ((newrev = rcsnum_parse(rcs_optarg)) == NULL) { |
|
cvs_log(LP_ERR, "bad revision number"); |
|
exit(1); |
|
} |
|
} |
|
break; |
|
default: |
default: |
(usage)(); |
(usage)(); |
exit(1); |
exit(1); |