From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#58383: 29.0.50; Make it easier to invert vc-prepare-patches-separately Date: Wed, 09 Nov 2022 17:46:50 +0000 Message-ID: <87iljo9g1h.fsf@posteo.net> References: <87mta6b3yu.fsf@melete.silentflame.com> <87edvh2m3o.fsf@posteo.net> <87v8nq4b62.fsf@melete.silentflame.com> <87cz9xgpd9.fsf@posteo.net> <87sfityxe8.fsf@melete.silentflame.com> <87sfisedkk.fsf@posteo.net> <87educytij.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21338"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58383@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 09 18:47:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ospAR-0005I5-NP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Nov 2022 18:47:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ospAG-0006vz-2V; Wed, 09 Nov 2022 12:47:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ospAE-0006ur-3E for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ospAD-00083X-R1 for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:47:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ospAD-0003c9-IV for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2022 17:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58383 X-GNU-PR-Package: emacs Original-Received: via spool by 58383-submit@debbugs.gnu.org id=B58383.166801601913885 (code B ref 58383); Wed, 09 Nov 2022 17:47:01 +0000 Original-Received: (at 58383) by debbugs.gnu.org; 9 Nov 2022 17:46:59 +0000 Original-Received: from localhost ([127.0.0.1]:40831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ospAA-0003bs-QK for submit@debbugs.gnu.org; Wed, 09 Nov 2022 12:46:59 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:35925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ospA9-0003bd-2Q for 58383@debbugs.gnu.org; Wed, 09 Nov 2022 12:46:57 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 87E0A240028 for <58383@debbugs.gnu.org>; Wed, 9 Nov 2022 18:46:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668016011; bh=GlpSC2D/OoLAg4Jmkxndh3xAiYxXQn3JhxXCm4LwB9k=; h=From:To:Cc:Subject:Date:From; b=ZZVPUzUht6PrjEbFAh6FYNiX5m8dNMkst9M2l+eea+c43Pg1wZPOfz7eTN/I4xM3f 5cc7w9xQ80OumWXdVjTHNsry1P2UajP/iKLHEtvRI7CLVtGLWhc6Z55QOtFNaFSklJ nECbnNRXrp2Ixk59uTw/2MDuuL1IGzjkl3zHa4z1Z/jhx0BW5KAlZMFM6Jy3Ls18H7 AcD5Mu4maxyjyBhjBwcUKuGRlgkcxfMt5j1/9MFqKLxJCfSaHMK0ut16deHYJWz+1L wAYYRHwA6xGTk5i5z1QwgYkoDeI3wIMbRaHhT2TGCAJ5QFKMgPCdSPmy4Ulxvib7VV svFJXz3iU2/bg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N6spy5Vcrz6tpy; Wed, 9 Nov 2022 18:46:50 +0100 (CET) In-Reply-To: <87educytij.fsf@melete.silentflame.com> (Sean Whitton's message of "Wed, 09 Nov 2022 09:36:36 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247456 Archived-At: Sean Whitton writes: > Hello, > > On Wed 09 Nov 2022 at 08:28AM GMT, Philip Kaludercic wrote: > >> Sean Whitton writes: >> >>> Hello, >>> >>> On Tue 08 Nov 2022 at 08:31PM GMT, Philip Kaludercic wrote: >>> >>>> Sean Whitton writes: >>>> >>>>>>> On the other hand, having a numeric prefix argument mean "send patches >>>>>>> correspoding to the top N revisions of the current branch" would be very >>>>>>> convenient. Perhaps these two could be combined by using a negative >>>>>>> number to mean also invert? >>>>>> >>>>>> This is the usual problem with numeric prefix arguments. You don't get >>>>>> that much expressivity with just an integer. >>>>>> >>>>>> That is why I would hesitate to assign any particular interpretation to >>>>>> prefix arguments, before considering and weighing the options. >>>>> >>>>> Well, any other options in mind? Varying the -N argument to >>>>> git-format-patch/git-send-email is what I find myself using the most. >>>> >>>> The issue is finding a way for this to be expressed VC-generically. >>> >>> s/expressed/implemented/, right? >> >> I meant expressed, but I don't remember what I meant ^^ >> >> So let's say implement. What we could do is just call >> `previous-revision' for the backend N times, but with what file? > > I don't know, but the meaning of "the past N checked-in revisions of the > whole tree" is what we need to agree upon, then it's just coding. The critical edge-case here is what happens when branches are merged. Do you pick a random branch or collect all the patches. Or do you raise an error, but then how do you detect that vc-generically.