diff options
author | 2005-04-19 02:04:56 +0000 | |
---|---|---|
committer | 2005-04-19 02:04:56 +0000 | |
commit | fb2bfdde775dc9c3bb026fb1fb784145ceb3b927 (patch) | |
tree | 732a0ed3ebdbdbc5d97ad3ea6430a3dc0e12e117 /usr.bin/cvs/commit.c | |
parent | update to libevent 1.0c; keep local changes (diff) | |
download | wireguard-openbsd-fb2bfdde775dc9c3bb026fb1fb784145ceb3b927.tar.xz wireguard-openbsd-fb2bfdde775dc9c3bb026fb1fb784145ceb3b927.zip |
handle removed files as well when checking files to commit
ok joris
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index 7ced1af7379..a05c611eb67 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.28 2005/04/19 00:35:02 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.29 2005/04/19 02:04:56 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -143,7 +143,8 @@ cvs_commit_prepare(CVSFILE *cf, void *arg) struct cvs_flist *clp = (struct cvs_flist *)arg; if ((cf->cf_type == DT_REG) && ((cf->cf_cvstat == CVS_FST_MODIFIED) || - (cf->cf_cvstat == CVS_FST_ADDED))) { + (cf->cf_cvstat == CVS_FST_ADDED) || + (cf->cf_cvstat == CVS_FST_REMOVED))) { copy = cvs_file_copy(cf); if (copy == NULL) return (CVS_EX_DATA); @@ -188,7 +189,8 @@ cvs_commit_file(CVSFILE *cf, void *arg) repo = cf->cf_parent->cf_repo; if ((cf->cf_cvstat == CVS_FST_ADDED) || - (cf->cf_cvstat == CVS_FST_MODIFIED)) { + (cf->cf_cvstat == CVS_FST_MODIFIED) || + (cf->cf_cvstat == CVS_FST_REMOVED)) { if (root->cr_method != CVS_METHOD_LOCAL) { if (cvs_sendentry(root, cf) < 0) { return (CVS_EX_PROTO); |