From 7fffa3cce46acafc698d4b7b7a25f7624dac5c48 Mon Sep 17 00:00:00 2001 From: joris Date: Wed, 3 Jan 2007 20:48:26 +0000 Subject: if we are commiting a file, do not let the server resend it with an 'Updated' response, seeing as the client will already have the latest version. Instead, send the correct 'Checked-in' response. --- usr.bin/cvs/commit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/commit.c') diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index bc5d1631b75..c11902e7415 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.83 2007/01/02 23:55:15 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.84 2007/01/03 20:48:26 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria @@ -330,7 +330,7 @@ cvs_commit_local(struct cvs_file *cf) if (b == NULL) fatal("cvs_commit_local: failed to get HEAD"); - cvs_checkout_file(cf, cf->file_rcs->rf_head, b, 0); + cvs_checkout_file(cf, cf->file_rcs->rf_head, b, CO_COMMIT); } else { entlist = cvs_ent_open(cf->file_wd); cvs_ent_remove(entlist, cf->file_name); -- cgit v1.2.3-59-g8ed1b