version 1.68, 2007/06/29 12:42:05 |
version 1.69, 2007/07/03 13:22:42 |
|
|
|
|
STRIP_SLASH(data); |
STRIP_SLASH(data); |
|
|
cvs_mkpath(data); |
cvs_mkpath(data, NULL); |
|
|
if ((base = basename(data)) == NULL) |
if ((base = basename(data)) == NULL) |
fatal("client_check_directory: overflow"); |
fatal("client_check_directory: overflow"); |
|
|
char repo[MAXPATHLEN], entry[CVS_ENT_MAXLINELEN]; |
char repo[MAXPATHLEN], entry[CVS_ENT_MAXLINELEN]; |
char timebuf[CVS_TIME_BUFSZ], revbuf[CVS_REV_BUFSZ]; |
char timebuf[CVS_TIME_BUFSZ], revbuf[CVS_REV_BUFSZ]; |
char *en, *mode, *len, *fpath, *rpath, *wdir; |
char *en, *mode, *len, *fpath, *rpath, *wdir; |
|
char sticky[CVS_ENT_MAXLINELEN]; |
|
|
if (data == NULL) |
if (data == NULL) |
fatal("Missing argument for Updated"); |
fatal("Missing argument for Updated"); |
|
|
|
|
e = cvs_ent_parse(en); |
e = cvs_ent_parse(en); |
xfree(en); |
xfree(en); |
|
|
|
sticky[0] = '\0'; |
|
if (e->ce_tag != NULL) |
|
(void)xsnprintf(sticky, sizeof(sticky), "T%s", e->ce_tag); |
|
|
rcsnum_tostr(e->ce_rev, revbuf, sizeof(revbuf)); |
rcsnum_tostr(e->ce_rev, revbuf, sizeof(revbuf)); |
(void)xsnprintf(entry, CVS_ENT_MAXLINELEN, "/%s/%s/%s/%s/", e->ce_name, |
(void)xsnprintf(entry, CVS_ENT_MAXLINELEN, "/%s/%s/%s/%s/%s", |
revbuf, timebuf, e->ce_opts ? e->ce_opts : ""); |
e->ce_name, revbuf, timebuf, |
|
e->ce_opts ? e->ce_opts : "", sticky); |
|
|
cvs_ent_free(e); |
cvs_ent_free(e); |
ent = cvs_ent_open(wdir); |
ent = cvs_ent_open(wdir); |
|
|
xfree(dir); |
xfree(dir); |
tag = cvs_remote_input(); |
tag = cvs_remote_input(); |
|
|
|
client_check_directory(data); |
|
|
(void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", data, CVS_PATH_TAG); |
(void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", data, CVS_PATH_TAG); |
|
|
if ((fp = fopen(tagpath, "w+")) == NULL) { |
if ((fp = fopen(tagpath, "w+")) == NULL) { |
|
|
dir = cvs_remote_input(); |
dir = cvs_remote_input(); |
xfree(dir); |
xfree(dir); |
|
|
|
client_check_directory(data); |
|
|
(void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", data, CVS_PATH_TAG); |
(void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", data, CVS_PATH_TAG); |
(void)cvs_unlink(tagpath); |
(void)unlink(tagpath); |
} |
} |
|
|
|
|