From nobody Sun Jun 19 13:55:04 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5E99786AF7C for ; Sun, 19 Jun 2022 13:55:11 +0000 (UTC) (envelope-from pauamma@gundo.com) Received: from mail.gundo.com (gibson.gundo.com [75.145.166.65]) by mx1.freebsd.org (Postfix) with ESMTP id 4LQvRf3rv6z4jxl for ; Sun, 19 Jun 2022 13:55:10 +0000 (UTC) (envelope-from pauamma@gundo.com) Received: from webmail.gundo.com (variax.gundo.com [75.145.166.70]) by mail.gundo.com (Postfix) with ESMTP id 734674C12BF for ; Sun, 19 Jun 2022 08:55:04 -0500 (CDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Date: Sun, 19 Jun 2022 13:55:04 +0000 From: Pau Amma To: freebsd-hackers@freebsd.org Subject: Re: RFD: MFC hold time guidelines In-Reply-To: References: <83c320038e43abe1d8bd59b9364a225e@gundo.com> <3452c9c1-dd46-fe42-8100-b99ee51389f5@m5p.com> <3be500954ea9ffe0aff60d913e3bd24c@gundo.com> User-Agent: Roundcube Webmail/1.4.8 Message-ID: <3def981b148772b7e8d43e0f30c9d6d6@gundo.com> X-Sender: pauamma@gundo.com Organization: The Cabal (TINC) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4LQvRf3rv6z4jxl X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=gundo.com; spf=pass (mx1.freebsd.org: domain of pauamma@gundo.com designates 75.145.166.65 as permitted sender) smtp.mailfrom=pauamma@gundo.com X-Spamd-Result: default: False [-3.90 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[pauamma]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[75.145.166.65:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:75.145.166.64/28]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[75.145.166.65:from]; DMARC_POLICY_ALLOW(-0.50)[gundo.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-hackers]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:75.144.0.0/13, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 2022-06-18 17:33, George Mitchell wrote: > On 6/18/22 08:35, Pau Amma wrote: >> On 2022-06-16 18:00, George Mitchell wrote: >>> On 6/16/22 12:51, Pau Amma wrote: >>>> [...] >>>> For context: git log | grep -i -E 'MFC.*after.*:' | sed -E -e 's/^ >>>> *(X-?)?//i' -e 's/^MFC[a-z0-9]*[- ]after: */MFC after: /i' | sort >>>> -fb | uniq -ci | sort -bf -k 1nr >>>> [...] >>> >>> A command line I'm sure you dashed off without a moment's hesitation! >> >> I'm confused. If you're wondering what this command does or how I came >> up with it, why not ask that? >> [...] > > I was merely expressing (poorly, it seems) my admiration that you were > able to come up with that string of commands, apparently on the spur of > the moment, to accomplish what you wanted. No offense was intended. Thanks for the clarification. For the record, it went like this: - OK, git then grep, obviously. - Bleh. Do I have to put together some awk or perl to collapse and count the lines with identical delays? I dunwanna, but if I gotta, I gotta. - Wait, doesn't uniq have an option for counting duplicates? *checks uniq(1)* - Sweeeeeet, it does. So sort to get the lines with the same delay together, then uniq -c - Hmm. Sadly but predictably, there are variations on the MFC format, but a sed stage can help with that. (That one went through 3 or 4 revisions as I experimented, I think.) - So far so good. Now how do I get them in the right order? *digs through sort(1)* - Hmm, -k 1nr is all it takes? Could be much, much worse. I'm looking at you, DFSORT and IRRCO00. - Do I want to make sed handle more variants? Naaah, diminishing returns. That's a wrap. Total time was 20-25 minutes IIRC. Not that long considering, but still nowhere near "dashed off without a moment's hesitation" :-) -- #BlackLivesMatter #TransWomenAreWomen #AccessibilityMatters #StandWithUkrainians English: he/him/his (singular they/them/their/theirs OK) French: il/le/lui (iel/iel and ielle/ielle OK) Tagalog: siya/niya/kaniya (please avoid sila/nila/kanila)