From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [nongnu] main 385623dca6 2/2: * elpa-packages (notmuch): New package. Date: Wed, 21 Dec 2022 23:03:15 -0500 Message-ID: References: <167139941586.12438.1105626110857907494@vcs2.savannah.gnu.org> <20221218213656.56E0AC0061B@vcs2.savannah.gnu.org> <875ye51wc3.fsf@melete.silentflame.com> <87sfh9i16q.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="698"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Sean Whitton , emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 22 05:04:19 2022 Return-path: Envelope-to: ged-emacs-devel@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 1p8Cod-000AZX-Fa for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Dec 2022 05:04:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8Cnq-0003ek-0z; Wed, 21 Dec 2022 23:03:30 -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 1p8Cno-0003eN-8e for emacs-devel@gnu.org; Wed, 21 Dec 2022 23:03:28 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8Cnl-0006Dj-Rq for emacs-devel@gnu.org; Wed, 21 Dec 2022 23:03:27 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 63B23100191; Wed, 21 Dec 2022 23:03:24 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 8AFEB100140; Wed, 21 Dec 2022 23:03:22 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1671681802; bh=xgYyM8Ev2I0de6MjxxrrF1wgg1THyjFF/LcbIVnwmgQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=EiWKFpRh51VzNHcbp91dePIsanqMbu4XXR7JQvCsbGSNPf+e6IDFtjDufqoWlH6ft oQNZ0QGWJUZld0bGKwF4qRsAXq2nbQ4ok5Mrz+BI3mkdP8G97Vhi3cejxLQ6UTU+jg +KpY3OP+uPiumLAisflRLin/wSRgXpwErqaYq3H2Z7uLqHjqH108Cw7liCEyuMRgpV h/0jU5O+Z5yg/QphZP7z0Pmplvn4laYzpfl06NlvJ6V6/KcAKrhXP1GAfb9iwbjuBr 0/gm3Gh2dfPJESwotFmOVA3PmVPSpnUgqOvRplXOJMcHMamSLQARV8khuRR8O+3ps3 xyw+Kjc1JEzlw== Original-Received: from pastel (unknown [45.72.200.228]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 50AA5123063; Wed, 21 Dec 2022 23:03:22 -0500 (EST) In-Reply-To: <87sfh9i16q.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 21 Dec 2022 08:57:33 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301776 Archived-At: >> While I hope Git grows support for "partial clones" (or more likely is >> superseded by something else which does support such things), the >> current situation is that you just can't do that. Which means >> `elpa-diffs` will be spammed with irrelevant commit to the non-Emacs >> part of Notmuch, for example, and `package-vc` will still have to >> download the 10MB of Notmuch's repository just to get at the relevant >> 0.5MB. > > Do you know if this is being worked on? Does it even fit into Git's > internal model? I don't think so, no. > (This might be too hacking, but I recently found out that GitHub > supports checking out repositories using Subversion. I guess they use > some bridge to translate the requests. I don't know if it is possible > to make use of this and a second SVN->Git bridge to check out partial > repositories as SVN does) It's no better than using `git subtree`. Maybe something like Pijul (which supports partial trees really well) will grow to be a worthy competitor, but we're pretty far from that, AFAIK. >> The closest we can get, AFAIK, is to run an interposer repository which >> fetches from https://git.notmuchmail.org/git/notmuch and filters the >> `emacs` subtree into a new branch, and then add *that* branch to >> `elpa-packages`. Of course, that creates a whole parallel history, so >> it may end up biting us down the line, but I think given the current >> situation it'd the "least wrong" way to do it (The Right Way being if >> they do that split upstream and then use the new branch as the official >> upstream). > > This was discussed back when I wanted to add a few modes developed in > mono-repos (erlang was one example, cmake is another). I had managed to > make this work using filter-branch IIRC, but we never set up a mirror. > Perhaps we should tackle that again, even if the solution is suboptimal I think we should yes. > and host the filtered repositories on savannah.nongnu.org. Or the filtered result could just live in nongnu.git/elpa.git. > I could set up a similar structure to nongnu.git and have each > repository we are interested in mirrored on their own branches that > nongnu.git:elpa-packages would target. I was thinking of doing the work within `elpaa--fetch`, actually. Stefan