From owner-freebsd-chat Tue Jul 4 0:10:15 2000 Delivered-To: freebsd-chat@freebsd.org Received: from server.baldwin.cx (server.geekhouse.net [64.81.6.52]) by hub.freebsd.org (Postfix) with ESMTP id D445237B775; Tue, 4 Jul 2000 00:10:11 -0700 (PDT) (envelope-from john@baldwin.cx) Received: from john.baldwin.cx (root@john.baldwin.cx [192.168.1.18]) by server.baldwin.cx (8.9.3/8.9.3) with ESMTP id AAA32117; Tue, 4 Jul 2000 00:10:11 -0700 (PDT) (envelope-from john@baldwin.cx) Received: (from john@localhost) by john.baldwin.cx (8.9.3/8.9.3) id AAA40323; Tue, 4 Jul 2000 00:11:16 -0700 (PDT) (envelope-from john) Message-Id: <200007040711.AAA40323@john.baldwin.cx> X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 04 Jul 2000 00:11:15 -0700 (PDT) From: John Baldwin To: Kris Kennaway Subject: Re: addport kicks easy-import out Cc: John Baldwin , Will Andrews , chat@FreeBSD.org Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 04-Jul-00 Kris Kennaway wrote: > On Mon, 3 Jul 2000, John Baldwin wrote: > >> It just lists the branch and is present for every commit. Ports >> are always on -HEAD though. :) > > Right, but the concept could be easily extended to which TLD of the repo > the commit falls into (src, ports, distrib, doc, www, sup, CVSROOT) That is already easy: elsif header :contains "Sender" "committers" { # commit messages if header :matches "Subject" "cvs commit:*" { # ports if header :contains "Subject" "ports" { # check for a new port if header :contains "Subject" "Imported sources" { fileinto "FreeBSD.Committers.ports.new"; } else { fileinto "FreeBSD.Committers.ports"; } } # src elsif header :contains "Subject" "src" { # split based on branch if header :is "X-FreeBSD-CVS-Branch" "RELENG_4" { fileinto "FreeBSD.Committers.src-4"; } elsif header :is "X-FreeBSD-CVS-Branch" "RELENG_3" { fileinto "FreeBSD.Committers.src-3"; } else { fileinto "FreeBSD.Committers.src-current"; } } # doc and www elsif header :contains "Subject" ["doc", "www"] { fileinto "FreeBSD.Committers.doc-www"; } # misc. commits else { fileinto "FreeBSD.Committers.misc"; } } } > Kris -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message