From owner-cvs-doc Fri Feb 7 13:15:43 2003 Delivered-To: cvs-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D190337B401; Fri, 7 Feb 2003 13:15:39 -0800 (PST) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26FB143FCB; Fri, 7 Feb 2003 13:15:39 -0800 (PST) (envelope-from nectar@celabo.org) Received: from opus.celabo.org (opus.celabo.org [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id B1A343D; Fri, 7 Feb 2003 15:15:38 -0600 (CST) Received: by opus.celabo.org (Postfix, from userid 1001) id 9ADEE5790; Fri, 7 Feb 2003 15:13:53 -0600 (CST) Date: Fri, 7 Feb 2003 15:13:53 -0600 From: "Jacques A. Vidrine" To: Peter Wemm Cc: all-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-doc@FreeBSD.org, cvs-all@FreeBSD.org, legacy-committers@FreeBSD.org Subject: Re: cvs commit: CVSROOT access access.doc access.ports Message-ID: <20030207211353.GH823@opus.celabo.org> References: <20030207175347.GA91623@opus.celabo.org> <20030207210835.1D4992A89E@canning.wemm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030207210835.1D4992A89E@canning.wemm.org> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-cvs-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 07, 2003 at 01:08:35PM -0800, Peter Wemm wrote: > Note the @names list has duplicates, while 'keys %uniq' does not. > all-committers doesn't simply send a seperate copy to > {src,ports,doc,...}-committers as that would cause lots of duplicates. Yes, but what is missing is that only email addresses are uniq'd. The code I sent takes into account this situation: access: nectar nectar/freebsd-src@celabo.org access.ports: nectar nectar/freebsd-ports@celabo.org access.doc: nectar nectar/freebsd-doc@celabo.org With the scripts as they are, since these are 3 different addresses, I will get each message (like this one) to all-committers 3 times. The uniqifying I added will only add one email address to the list for each unique committer name. So I would get only one mail to all-committers (at nectar/freebsd-src@celabo.org as it happens, because that file is looked at first). Did I make sense this time? :-) > Footnote: I had a very disturbing conversation with some folks on IRC > about this. It turns out that there are many many different one-liner ways > to de-dup a list. Perl is a very "interesting" language, and Bill Fenner > makes me worry because he seems to know all the tricks. :-) Yeah, that's the first time I saw the trick of using grep() just for its side-effect. I guess that's why I don't like perl :-) (DISCLAIMER: perl hacker, 1993-1997; python convert > 1997) Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-doc" in the body of the message