diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2007-09-23 10:49:50 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2007-09-23 10:49:50 +0000 |
commit | 819bd2a7e7c80e314aa3c23e281d463706149eb9 (patch) | |
tree | 134dfbceed9ba5f527874387e3e44d11754d1180 /usr.bin/cvs/file.c | |
parent | 2a84382ca12d636e2435551185751aafa815f0ef (diff) |
pass FILE_HAS_FLAG towards the update code so it can identify
if a given tag is present in the RCSfile or not.
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index 9c959f8e311..4f8bef981e2 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.199 2007/09/22 16:01:22 joris Exp $ */ +/* $OpenBSD: file.c,v 1.200 2007/09/23 10:49:49 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> @@ -667,6 +667,7 @@ cvs_file_classify(struct cvs_file *cf, const char *tag) } notag = 0; + cf->file_flags |= FILE_HAS_TAG; if (tag != NULL && cf->file_rcs != NULL) { if ((cf->file_rcsrev = rcs_translate_tag(tag, cf->file_rcs)) != NULL) { @@ -674,6 +675,7 @@ cvs_file_classify(struct cvs_file *cf, const char *tag) } else { notag = 1; cf->file_rcsrev = rcs_head_get(cf->file_rcs); + cf->file_flags &= ~FILE_HAS_TAG; } } else if (cf->file_ent != NULL && cf->file_ent->ce_tag != NULL) { cf->file_rcsrev = rcsnum_alloc(); |