tag from Entries for a given file if the sticky tag is present.
while changing this we can simplify some logic in update.c on how it
decides what tag to use for file classification.
-/* $OpenBSD: file.c,v 1.270 2017/05/28 17:11:34 joris Exp $ */
+/* $OpenBSD: file.c,v 1.271 2017/05/29 17:18:56 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
cf->file_ent = NULL;
if (cf->file_ent != NULL) {
- if (cf->file_ent->ce_tag != NULL && cvs_specified_tag == NULL)
+ if (cvs_specified_tag == NULL)
tag = cf->file_ent->ce_tag;
if (cf->file_flags & FILE_ON_DISK &&
-/* $OpenBSD: update.c,v 1.174 2016/10/15 22:20:17 millert Exp $ */
+/* $OpenBSD: update.c,v 1.175 2017/05/29 17:18:56 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
flags = 0;
if (cvs_specified_tag != NULL)
tag = cvs_specified_tag;
- else if (cf->file_ent != NULL && cf->file_ent->ce_tag != NULL)
- tag = cf->file_ent->ce_tag;
else
tag = cvs_directory_tag;