version 1.29, 2007/06/20 16:25:46 |
version 1.30, 2007/06/28 04:48:52 |
|
|
cvs_log(LP_TRACE, "cvs_history_add(`%c', `%s', `%s')", |
cvs_log(LP_TRACE, "cvs_history_add(`%c', `%s', `%s')", |
historytab[type], (cf != NULL) ? cf->file_name : "", argument); |
historytab[type], (cf != NULL) ? cf->file_name : "", argument); |
|
|
if ((cwd = getcwd(NULL, MAXPATHLEN)) == NULL) |
if (cvs_server_active == 1) { |
fatal("cvs_history_add: getcwd: %s", strerror(errno)); |
cwd = "<remote>"; |
|
} else { |
|
if ((cwd = getcwd(NULL, MAXPATHLEN)) == NULL) |
|
fatal("cvs_history_add: getcwd: %s", strerror(errno)); |
|
} |
|
|
/* construct repository field */ |
/* construct repository field */ |
if (cvs_cmdop != CVS_OP_CHECKOUT && cvs_cmdop != CVS_OP_EXPORT) { |
if (cvs_cmdop != CVS_OP_CHECKOUT && cvs_cmdop != CVS_OP_EXPORT) { |
|
|
cvs_log(LP_ERR, "failed to add entry to history file"); |
cvs_log(LP_ERR, "failed to add entry to history file"); |
} |
} |
|
|
xfree(cwd); |
if (cvs_server_active != 1) |
|
xfree(cwd); |
} |
} |
|
|
int |
int |