diff options
author | 2007-11-09 16:21:24 +0000 | |
---|---|---|
committer | 2007-11-09 16:21:24 +0000 | |
commit | 2353e83a737874af009df402c783b88ecc9bed27 (patch) | |
tree | dd1c365caba19dc560b7e3981dc2cb6623846682 | |
parent | Call prom_set_trap_table for secondary CPUs too. (diff) | |
download | wireguard-openbsd-2353e83a737874af009df402c783b88ecc9bed27.tar.xz wireguard-openbsd-2353e83a737874af009df402c783b88ecc9bed27.zip |
Fix for a rather unintuitive behaviour, this way it can be reproduced:
cvs checkout src/sbin/swapon
cvs checkout -rHEAD src/sbin/swapon
If no date or revision has been supplied, swapon.8 won't be checked out,
but if a revision (even if it is HEAD) or a date (-D) has been supplied,
swapon.8 will be checked out due to modifications in Attic/ after it has
been removed from tree.
-rw-r--r-- | usr.bin/cvs/file.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index 72ff91c3323..9e6f27660b1 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.204 2007/10/09 12:20:24 tobias Exp $ */ +/* $OpenBSD: file.c,v 1.205 2007/11/09 16:21:24 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> @@ -732,6 +732,10 @@ cvs_file_classify(struct cvs_file *cf, const char *tag) if (!strcmp(state, RCS_STATE_DEAD)) rcsdead = 1; + if (cvs_specified_tag == NULL && cf->in_attic && + !RCSNUM_ISBRANCHREV(cf->file_rcsrev)) + rcsdead = 1; + cf->file_rcs->rf_dead = rcsdead; } |