Date: Mon, 27 Feb 2006 19:40:02 +0000 (UTC) From: Maxime Henrion <mux@FreeBSD.org> To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: projects/csup GNUmakefile Makefile config.c config.h globtree.h lister.c misc.c misc.h proto.c Message-ID: <200602271940.k1RJe2V9035622@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602271940.k1RJe2V9035622>