diff options
author | 2007-07-25 08:45:24 +0000 | |
---|---|---|
committer | 2007-07-25 08:45:24 +0000 | |
commit | a76e09e0b4f2f82311244b4ee78ac3da257b11e6 (patch) | |
tree | 566cc805095ef4f0dcd21ccbf002ffa252b25703 | |
parent | document multipath options. (diff) | |
download | wireguard-openbsd-a76e09e0b4f2f82311244b4ee78ac3da257b11e6.tar.xz wireguard-openbsd-a76e09e0b4f2f82311244b4ee78ac3da257b11e6.zip |
Correctly handle the export command when writing to history file.
-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; |