diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-04-24 02:06:28 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-04-24 02:06:28 +0000 |
commit | 203f31df80ad80fa7589d25faf9e164f6f01829d (patch) | |
tree | 169f50e6f1a76cde8bbc8959c845a84ae049d826 /usr.bin | |
parent | 4b0a825cecb57d4bec8458ce56d33b73860b36ac (diff) |
don't send a Modified request and the file its contents when
it has been removed.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/commit.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index 4d656d6f4ee..f6f2cb857f2 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.30 2005/04/24 01:56:36 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.31 2005/04/24 02:06:27 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -196,6 +196,13 @@ cvs_commit_file(CVSFILE *cf, void *arg) return (CVS_EX_PROTO); } + /* if it's removed, don't bother sending a + * Modified request together with the file its + * contents. + */ + if (cf->cf_cvstat == CVS_FST_REMOVED) + return (0); + if (cvs_sendreq(root, CVS_REQ_MODIFIED, CVS_FILE_NAME(cf)) < 0) { return (CVS_EX_PROTO); |