From f61f154c8ef589df49ac609b531ca67d71d1c4ae Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Wed, 25 Jul 2007 08:45:25 +0000 Subject: Correctly handle the export command when writing to history file. --- usr.bin/cvs/checkout.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c index dac4041abd0..2d64d2fd11b 100644 --- a/usr.bin/cvs/checkout.c +++ b/usr.bin/cvs/checkout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: checkout.c,v 1.98 2007/07/18 08:17:27 xsa Exp $ */ +/* $OpenBSD: checkout.c,v 1.99 2007/07/25 08:45:24 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -192,7 +192,8 @@ checkout_repository(const char *repobase, const char *wdbase) TAILQ_INIT(&fl); TAILQ_INIT(&dl); - cvs_history_add(CVS_HISTORY_CHECKOUT, NULL, wdbase); + cvs_history_add((cvs_cmdop == CVS_OP_CHECKOUT) ? + CVS_HISTORY_CHECKOUT : CVS_HISTORY_EXPORT, NULL, wdbase); build_dirs = 1; cr.enterdir = cvs_update_enterdir; -- cgit v1.2.3