diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-07-25 08:45:25 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-07-25 08:45:25 +0000 |
commit | f61f154c8ef589df49ac609b531ca67d71d1c4ae (patch) | |
tree | bd9dc1be772aae05b75fdd9d9e88ee2af8b037a5 /usr.bin | |
parent | e4beeeee32c53083c2cc1f5d46506329abade34f (diff) |
Correctly handle the export command when writing to history file.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/checkout.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <joris@openbsd.org> * @@ -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; |