Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2003 15:13:53 -0600
From:      "Jacques A. Vidrine" <nectar@FreeBSD.org>
To:        Peter Wemm <peter@wemm.org>
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>
In-Reply-To: <20030207210835.1D4992A89E@canning.wemm.org>
References:  <20030207175347.GA91623@opus.celabo.org> <20030207210835.1D4992A89E@canning.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <nectar@celabo.org>          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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030207211353.GH823>