version 1.41, 2005/10/17 15:33:12 |
version 1.42, 2005/10/17 22:04:54 |
|
|
interactive = 0; |
interactive = 0; |
cvs_printf("rcs_msg: %s\n", rcs_msg); |
cvs_printf("rcs_msg: %s\n", rcs_msg); |
break; |
break; |
|
case 'N': |
|
if ((symbol = strdup(rcs_optarg)) == NULL) { |
|
cvs_log(LP_ERRNO, "out of memory"); |
|
exit(1); |
|
} |
|
if (rcs_sym_check(symbol) != 1) { |
|
cvs_log(LP_ERR, "invalid symbol `%s'", symbol); |
|
exit(1); |
|
} |
|
break; |
case 'n': |
case 'n': |
if ((symbol = strdup(rcs_optarg)) == NULL) { |
if ((symbol = strdup(rcs_optarg)) == NULL) { |
cvs_log(LP_ERRNO, "out of memory"); |
cvs_log(LP_ERRNO, "out of memory"); |
|
|
if ((ret = rcs_sym_add(file, symbol, newrev) == -1) |
if ((ret = rcs_sym_add(file, symbol, newrev) == -1) |
&& (rcs_errno == RCS_ERR_DUPENT)) { |
&& (rcs_errno == RCS_ERR_DUPENT)) { |
char tmp[16]; |
char tmp[16]; |
rcsnum_tostr(rcs_sym_getrev(file, symbol), tmp, sizeof(tmp)); |
rcsnum_tostr(rcs_sym_getrev(file, symbol), |
cvs_log(LP_ERR, "symbolic name %s already bound to %s", |
tmp, sizeof(tmp)); |
|
cvs_log(LP_ERR, |
|
"symbolic name %s already bound to %s", |
symbol, tmp); |
symbol, tmp); |
status = 1; |
status = 1; |
rcs_close(file); |
rcs_close(file); |
continue; |
continue; |
} else if (ret == -1) { |
} else if (ret == -1) { |
cvs_printf("problem adding symbol: %s\n", symbol); |
cvs_printf("problem adding symbol: %s\n", |
|
symbol); |
status = 1; |
status = 1; |
rcs_close(file); |
rcs_close(file); |
continue; |
continue; |