diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-10 09:41:53 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-10 09:41:53 +0000 |
commit | be9d6014c8bb0a19cc66ad4291244d4580f8b231 (patch) | |
tree | e0dceba9b731464194e16d50ccb59b5c713859a4 /usr.bin/cvs/add.c | |
parent | 6f6131c147f71ea44b9fd37a07ed33e84a95b0fc (diff) |
Properly handle "cvs add" on a client/server setup with GNU cvs as a client.
Diffstat (limited to 'usr.bin/cvs/add.c')
-rw-r--r-- | usr.bin/cvs/add.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c index 663883c54a1..5deb16536aa 100644 --- a/usr.bin/cvs/add.c +++ b/usr.bin/cvs/add.c @@ -1,4 +1,4 @@ -/* $OpenBSD: add.c,v 1.83 2008/01/10 09:37:26 tobias Exp $ */ +/* $OpenBSD: add.c,v 1.84 2008/01/10 09:41:52 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> @@ -380,7 +380,13 @@ add_entry(struct cvs_file *cf) (kflag != RCS_KWEXP_DEFAULT) ? kbuf : ""); } - entlist = cvs_ent_open(cf->file_wd); - cvs_ent_add(entlist, entry); - cvs_ent_close(entlist, ENT_SYNC); + if (cvs_server_active) { + cvs_server_send_response("Checked-in %s/", cf->file_wd); + cvs_server_send_response(cf->file_path); + cvs_server_send_response(entry); + } else { + entlist = cvs_ent_open(cf->file_wd); + cvs_ent_add(entlist, entry); + cvs_ent_close(entlist, ENT_SYNC); + } } |