summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/proto.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-04-22 15:16:16 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-04-22 15:16:16 +0000
commit5ad8cbefa6249a5ed8118c2644ced5eb5f270bbb (patch)
treed48fec531d0792cfabb1c4695dc0289cf141fb4d /usr.bin/cvs/proto.c
parent0afc834b1d2567cc5153e3492874e195e65cd1ff (diff)
finish support for the '-' token in the Entry file, this allows
us to mark files as removed, and lets the remove command work completely. tested and ok xsa@, jfb@
Diffstat (limited to 'usr.bin/cvs/proto.c')
-rw-r--r--usr.bin/cvs/proto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c
index a82d951373a..b42abc9d9f6 100644
--- a/usr.bin/cvs/proto.c
+++ b/usr.bin/cvs/proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proto.c,v 1.48 2005/04/18 23:56:19 joris Exp $ */
+/* $OpenBSD: proto.c,v 1.49 2005/04/22 15:16:15 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1018,7 +1018,8 @@ cvs_sendentry(struct cvsroot *root, const CVSFILE *file)
if (file->cf_cvstat == CVS_FST_UNKNOWN)
return (0);
- snprintf(ebuf, sizeof(ebuf), "/%s/%s///", file->cf_name,
+ snprintf(ebuf, sizeof(ebuf), "/%s/%s%s///", file->cf_name,
+ (file->cf_cvstat == CVS_FST_REMOVED) ? "-" : "",
rcsnum_tostr(file->cf_lrev, numbuf, sizeof(numbuf)));
return cvs_sendreq(root, CVS_REQ_ENTRY, ebuf);