summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/client.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2007-01-26 21:48:18 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2007-01-26 21:48:18 +0000
commit1dc1e685e35f59cc0cd89a24510839b45f0150da (patch)
tree8c789f604084d7b0d74c6528814f7f7877d7baa4 /usr.bin/cvs/client.c
parent5fe1d95edff25df017aaf72fcf4bfc72a3936053 (diff)
- support [-k mode] for the add command
- do not let the file keyword expension options (-k) disappear from the Entries file when doing a commit/update/checkout - be sure the expension mode gets written to the RCS file when a file is added/committed in the first place problems raised by otto@; tests/ok otto@ and joris@.
Diffstat (limited to 'usr.bin/cvs/client.c')
-rw-r--r--usr.bin/cvs/client.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c
index 01ae9a8a434..de0970475a3 100644
--- a/usr.bin/cvs/client.c
+++ b/usr.bin/cvs/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.52 2007/01/26 11:19:44 joris Exp $ */
+/* $OpenBSD: client.c,v 1.53 2007/01/26 21:48:17 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -472,7 +472,8 @@ cvs_client_sendfile(struct cvs_file *cf)
cvs_client_send_request("Entry /%s/%s%s/%s//%s",
cf->file_name, (cf->file_status == FILE_REMOVED) ? "-" : "",
- rev, timebuf, sticky);
+ rev, timebuf, cf->file_ent->ce_opts ?
+ cf->file_ent->ce_opts : "", sticky);
}
switch (cf->file_status) {
@@ -588,9 +589,9 @@ cvs_client_checkedin(char *data)
fatal("cvs_client_checkedin: overflow");
}
- l = snprintf(entry, CVS_ENT_MAXLINELEN, "/%s/%s%s/%s//%s/",
+ l = snprintf(entry, CVS_ENT_MAXLINELEN, "/%s/%s%s/%s/%s/%s",
newent->ce_name, (newent->ce_status == CVS_ENT_REMOVED) ? "-" : "",
- rev, timebuf, sticky);
+ rev, timebuf, ent->ce_opts ? ent->ce_opts : "", sticky);
if (l == -1 || l >= CVS_ENT_MAXLINELEN)
fatal("cvs_client_checkedin: overflow");