From 408908afc91fd1a9d4d6ce83d436b36167cdb483 Mon Sep 17 00:00:00 2001 From: joris Date: Wed, 3 Jan 2007 22:28:30 +0000 Subject: add support for 'remove' in a remote setup. testing appriciated, as always. --- usr.bin/cvs/commit.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'usr.bin/cvs/commit.c') diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index c11902e7415..29c5aeab00c 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.84 2007/01/03 20:48:26 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.85 2007/01/03 22:28:30 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria @@ -358,6 +358,9 @@ cvs_commit_local(struct cvs_file *cf) xfree(repo); xfree(attic); + + if (cvs_server_active == 1) + cvs_server_update_entry("Remove-entry", cf); } if (verbosity > 1) @@ -366,20 +369,6 @@ cvs_commit_local(struct cvs_file *cf) cvs_log(LP_NOTICE, "checking in '%s'; revision %s -> %s", cf->file_path, rbuf, nbuf); } - - if (cvs_server_active == 1) { - if ((p = strrchr(cf->file_rpath, ',')) != NULL) - *p = '\0'; - - if (cf->file_status == FILE_REMOVED) { - cvs_server_send_response("Remove-entry %s/", - cf->file_wd); - cvs_remote_output(cf->file_rpath); - } - - if (p != NULL) - *p = ','; - } } static char * -- cgit v1.2.3-59-g8ed1b