From owner-cvs-all@FreeBSD.ORG Mon Feb 27 19:40:03 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12E9016A422; Mon, 27 Feb 2006 19:40:03 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37A2543D64; Mon, 27 Feb 2006 19:40:02 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1RJe2ub035623; Mon, 27 Feb 2006 19:40:02 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1RJe2V9035622; Mon, 27 Feb 2006 19:40:02 GMT (envelope-from mux) Message-Id: <200602271940.k1RJe2V9035622@repoman.freebsd.org> From: Maxime Henrion Date: Mon, 27 Feb 2006 19:40:02 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup GNUmakefile Makefile config.c config.h globtree.h lister.c misc.c misc.h proto.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2006 19:40:03 -0000 mux 2006-02-27 19:40:02 UTC FreeBSD projects repository Modified files: csup GNUmakefile Makefile config.c config.h globtree.h lister.c misc.c misc.h proto.c Log: Add support for refuse files: - Connect globtree.c to the build. - Add a small pattlist API that is used to store pattern lists, such as the ones in the refuse files. - Create the pattern lists in config_init(). While I'm here, move the creation of the keyword object to this same place. Finally, parse the refuse files in config_init() after the pattern lists are created. - Correctly set up the default ignored attributes. - Implement coll_statussuffix(), that returns the suffix for a status file; we use the same suffix for per-release and per-tag refuse files. - Rewrite coll_statuspath() in terms of coll_statussuffix(). Also, make coll_statuspath() and coll_statussuffix() work more similary to what is done in CVSup. For instance, we we not handling the case where "collDir" is an absolute pathname correctly. - List our accept and refuse patterns to the server in proto_xchgcoll(). For now, we don't support the -i option so we don't have accepts but that will come soon now. - Build two globtrees in proto_xchgcoll(), one to filter filenames and another one to filter directories. - Use these filters in the lister thread to only list files that don't match the patterns in the refuse files. Revision Changes Path 1.5 +4 -4 projects/csup/GNUmakefile 1.42 +2 -1 projects/csup/Makefile 1.43 +124 -11 projects/csup/config.c 1.32 +6 -1 projects/csup/config.h 1.2 +3 -1 projects/csup/globtree.h 1.26 +8 -1 projects/csup/lister.c 1.27 +57 -1 projects/csup/misc.c 1.24 +8 -1 projects/csup/misc.h 1.81 +84 -7 projects/csup/proto.c