From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 19 02:00:05 2021 Received: (at submit) by debbugs.gnu.org; 19 Nov 2021 07:00:05 +0000 Received: from localhost ([127.0.0.1]:37748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnxsS-0008S6-Qt for submit@debbugs.gnu.org; Fri, 19 Nov 2021 02:00:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:54498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnxsQ-0008Pj-FO for submit@debbugs.gnu.org; Fri, 19 Nov 2021 02:00:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnxsP-0000Dp-Jm for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 02:00:01 -0500 Received: from [2a01:4f9:2b:f0f::2] (port=46670 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnxsN-0001Ma-H5 for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 02:00:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=96y1BOuNjFKqCJacc+iUT/3NCy898m1PN5dyfSRydo4=; b=eA1cIXtdRsl3U2UNMgkN539rrk AVlqwYb5y53tAFy1rBSbziwMrT4wIPBQYXhqQ3cvj7N+gxqFh7fqnsi8uEJaVwnqyycu8YDoBhbJv 5L4Ak6T9jDcvDVuntfWklcNZtgB5pgAYWZFv9gOBXCHTP6BfY1cUz3AqjDSxqK04IT1A=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnxsI-0007xt-A9 for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 07:59:57 +0100 From: Lars Ingebrigtsen To: bug-gnu-emacs@gnu.org Subject: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir X-Now-Playing: Judee Sill's _Dreams Come True (1)_: "I'm Over (studio demo)" Date: Fri, 19 Nov 2021 07:59:53 +0100 Message-ID: <87wnl4wryu.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: `+' and `P' in vc-dir-mode are nice, but it means that I have to wait until `+' is done first. So what I want is a command that does the pull, and if there's no conflicts, then do the push. It seems like this shouldn't be too difficult -- vc-exec-after should be able to do this somehow. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) `+' and `P' in vc-dir-mode are nice, but it means that I have to wait until `+' is done first. So what I want is a command that does the pull, and if there's no conflicts, then do the push. It seems like this shouldn't be too difficult -- vc-exec-after should be able to do this somehow. Or perhaps more generally -- vc-git-pull could have a callback function that's called after it's done, and it could be called with the status (success or not) as a parameter? Then people could write their own functions to react to the aftermath of a pull. In GNU Emacs 29.0.50 (build 17, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) of 2021-11-18 built on xo Repository revision: 7a1e5ac8b29b731e89cc9d5b498e31bd90840b9b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux bookworm/sid -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 19 03:39:34 2021 Received: (at 51964) by debbugs.gnu.org; 19 Nov 2021 08:39:34 +0000 Received: from localhost ([127.0.0.1]:37929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnzQi-0006zn-Qq for submit@debbugs.gnu.org; Fri, 19 Nov 2021 03:39:34 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:50225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnzQf-0006zK-J4 for 51964@debbugs.gnu.org; Fri, 19 Nov 2021 03:39:30 -0500 Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id ADE57E0010; Fri, 19 Nov 2021 08:39:21 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir Organization: LINKOV.NET References: <87wnl4wryu.fsf@gnus.org> Date: Fri, 19 Nov 2021 10:28:41 +0200 In-Reply-To: <87wnl4wryu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 19 Nov 2021 07:59:53 +0100") Message-ID: <86czmwr2u2.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51964 Cc: 51964@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > `+' and `P' in vc-dir-mode are nice, but it means that I have to wait > until `+' is done first. So what I want is a command that does the > pull, and if there's no conflicts, then do the push. > > It seems like this shouldn't be too difficult -- vc-exec-after should be > able to do this somehow. > > Or perhaps more generally -- vc-git-pull could have a callback function > that's called after it's done, and it could be called with the status > (success or not) as a parameter? Then people could write their own > functions to react to the aftermath of a pull. Shouldn't the pull+push command be customizable to allow "git pull --rebase", especially useful in this workflow? From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 19 03:43:04 2021 Received: (at 51964) by debbugs.gnu.org; 19 Nov 2021 08:43:05 +0000 Received: from localhost ([127.0.0.1]:37946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnzU8-00076W-Nb for submit@debbugs.gnu.org; Fri, 19 Nov 2021 03:43:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnzU6-000761-I3 for 51964@debbugs.gnu.org; Fri, 19 Nov 2021 03:43:03 -0500 Received: from [2001:470:142:3::e] (port=55076 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnzU1-0006im-4q; Fri, 19 Nov 2021 03:42:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6UoY5DXApjhEwmjZwP8YaCJPngLxBQwyB7tMveiAtRg=; b=icXi7R1KRgjG /2iIPrNARmnse1yVrpBOZGcRhKfashspWUKYOLHkUdEXZjS2prsvHe7eYQE/wZhtNxqZdNOoSvIin sMCJ+GNx4uPAmnGQdV/QOie8wEPGSVqZz+Awz1tzotBT+jYVixMVuUNeAOX9z/hX4vsaDAdgbMwVc tTGedGh/Yd4Kap4skikK/PZYY6ChHvMmQuidS743Uknm8xjq09A2r/iGv1Xl3ATs4EGmhFTgKoAP1 911j1mT5ex1HKi9pYslwP3GlfNkaLJQmwAlt+EJRt3tn7LclNpyl6t5kSHhzdDX2rnUb+h+SFFDma yunq4dTsV0jKt/cufPLtJQ==; Received: from [87.69.77.57] (port=3072 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnzU0-0006aQ-Qq; Fri, 19 Nov 2021 03:42:57 -0500 Date: Fri, 19 Nov 2021 10:42:56 +0200 Message-Id: <83y25kv8mn.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <86czmwr2u2.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 19 Nov 2021 10:28:41 +0200) Subject: Re: bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir References: <87wnl4wryu.fsf@gnus.org> <86czmwr2u2.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51964 Cc: larsi@gnus.org, 51964@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Juri Linkov > Date: Fri, 19 Nov 2021 10:28:41 +0200 > Cc: 51964@debbugs.gnu.org > > > Or perhaps more generally -- vc-git-pull could have a callback function > > that's called after it's done, and it could be called with the status > > (success or not) as a parameter? Then people could write their own > > functions to react to the aftermath of a pull. > > Shouldn't the pull+push command be customizable to allow "git pull --rebase", > especially useful in this workflow? I think we should have a user option saying whether merge-based or rebase-based workflow is preferred, because this affects (or could/should affect) quite a few defaults, at least with Git. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 19 05:20:46 2021 Received: (at 51964) by debbugs.gnu.org; 19 Nov 2021 10:20:46 +0000 Received: from localhost ([127.0.0.1]:38159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mo10f-0003mM-Tg for submit@debbugs.gnu.org; Fri, 19 Nov 2021 05:20:46 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:40768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mo10e-0003mC-O2 for 51964@debbugs.gnu.org; Fri, 19 Nov 2021 05:20:45 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4HwXk32Qzwz1r86s; Fri, 19 Nov 2021 11:20:43 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4HwXk30nqPz1qqkK; Fri, 19 Nov 2021 11:20:43 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id FZvKF-751HVQ; Fri, 19 Nov 2021 11:20:42 +0100 (CET) X-Auth-Info: xA1wgyzcW5jEauSqna2VqmgWmc3CtS6zk2CPt1DdtGZEbgVNHRLPmtMWYafpY48+ Received: from igel.home (ppp-46-244-190-117.dynamic.mnet-online.de [46.244.190.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 19 Nov 2021 11:20:42 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id CC5F62C2532; Fri, 19 Nov 2021 11:20:41 +0100 (CET) From: Andreas Schwab To: Juri Linkov Subject: Re: bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir References: <87wnl4wryu.fsf@gnus.org> <86czmwr2u2.fsf@mail.linkov.net> X-Yow: Now I am depressed... Date: Fri, 19 Nov 2021 11:20:41 +0100 In-Reply-To: <86czmwr2u2.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 19 Nov 2021 10:28:41 +0200") Message-ID: <87ilwoxx8m.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 51964 Cc: Lars Ingebrigtsen , 51964@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.5 (-) On Nov 19 2021, Juri Linkov wrote: > Shouldn't the pull+push command be customizable to allow "git pull --rebase", > especially useful in this workflow? You can also customize that per repository with git config. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 20 03:30:46 2021 Received: (at 51964) by debbugs.gnu.org; 20 Nov 2021 08:30:46 +0000 Received: from localhost ([127.0.0.1]:41593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moLlm-0006Zh-IU for submit@debbugs.gnu.org; Sat, 20 Nov 2021 03:30:46 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moLlk-0006ZR-Bn for 51964@debbugs.gnu.org; Sat, 20 Nov 2021 03:30:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8UC8H/c0ua0vItj8YB0g/WmcQob2zkvQEON7kCQzpig=; b=S0lUmglHqHL/3d/cKBBnYuOGe+ TTeMaipg4vl/uQYdWaz7Wm0zhobNuR1DGtWD5rEauFpIcGsuGfhDAmB3nXRHNlTUpy1k82553YHwf ST87txzVJbgqaWL32hguh83h9jG40CUpBzhTd8CF38joTHhmjQNuoImhXUFx4zFc3c3U=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moLlb-0001Of-4D; Sat, 20 Nov 2021 09:30:38 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir References: <87wnl4wryu.fsf@gnus.org> <86czmwr2u2.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEUkJCsTFBQ1QV1E XJT///8eAeP6AAAAAWJLR0QEj2jZUQAAAAd0SU1FB+ULFAgQFQv6dkoAAAGoSURBVDjLjZThke0g CIVBGxBsQKEBxP57e5iY++Kd3ZnNTP7k4xwQMID08wN/BeUDiCSjqZfZPIKmczfyC2gNkJslQ+KR eLyB8HTxTmXQW0EmyQb3sJ7fAHzwiBy1f4FiQ6aF5JVcbjCXk1H+AmwrnBRrGgeonQCgFGP5D3KA vL4DYH6DpZACWELC9gUsyQKI8wTaRaKDy0uOqhQu0ACqn4AjC3IAPgGlUGAKgOcBSUQQr4IfUHCd YwGCQ1H7pVixIEvyAHarMlZ0FMWBeDg4NCDtZSIVASqYpIVius4OeynCPuQgDT5bItx1Xq2NV0LI xjEbQA/TdPc2EgXIyu43MPqAhOSVh27FC3SyGGL+KDYJUFb5GQHnHHOuWVwS6GU8IA+XJ/t6Rky3 4raqfVtFJ17AY5l3ONYTVN9JUOUC/QG6QTE/QaZyO8EBUs5wza9oOXJgjsiomPQLJK1ttrioVk/A U5t5NFs0Lso++ZVctc0uVDwXezXxBiiUwmpsQFdLnG0pcH2MeXS9gScPhxGbZaxdlc33zL0V6xZr 3Uoc9p45/faT+Q38A+qPZ25rcqMwAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTExLTIwVDA4OjE2 OjIxKzAwOjAwD8xZyAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMS0yMFQwODoxNjoyMSswMDow MH6R4XQAAAAASUVORK5CYII= X-Now-Playing: Judee Sill's _Heart Food_: "The Vigilante" Date: Sat, 20 Nov 2021 09:30:34 +0100 In-Reply-To: <86czmwr2u2.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 19 Nov 2021 10:28:41 +0200") Message-ID: <874k87tej9.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > Shouldn't the pull+push command be customizable to allow "git pull --rebase", > especially useful in this workflow? This command is certainly even more useful if you're using rebasing, but I think people customise that in their git setups, so I think it would probably be superfluous. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51964 Cc: 51964@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > Shouldn't the pull+push command be customizable to allow "git pull --rebase", > especially useful in this workflow? This command is certainly even more useful if you're using rebasing, but I think people customise that in their git setups, so I think it would probably be superfluous. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 24 09:17:55 2022 Received: (at 51964) by debbugs.gnu.org; 24 Sep 2022 13:17:55 +0000 Received: from localhost ([127.0.0.1]:42698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc52Z-0003tk-5A for submit@debbugs.gnu.org; Sat, 24 Sep 2022 09:17:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc52X-0003tT-D9 for 51964@debbugs.gnu.org; Sat, 24 Sep 2022 09:17:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/liHaz/JAFZrZJpKLJnhFSzDXE3mWyFUROf7tw7jE1U=; b=fLlfgqs3dv+JW7sogoFNBfCahs TQuNZp57zNL9MzbnU47mfUfZR8ChmsE0ATgebFmrGtF7q6JbVfIA5uVSe2oM6KxRYRkZXEgmBcC0k gdefQ/aIemo6c4G2l3f1PgA43PkBK+2nZQHGzPm70/s+cr8DZ7albBjq39Zn3fNYMRCU=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oc52O-0003pH-Ft for 51964@debbugs.gnu.org; Sat, 24 Sep 2022 15:17:46 +0200 From: Lars Ingebrigtsen To: 51964@debbugs.gnu.org Subject: Re: bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir In-Reply-To: <87wnl4wryu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 19 Nov 2021 07:59:53 +0100") References: <87wnl4wryu.fsf@gnus.org> X-Now-Playing: Richard Horowitz's _Eros in Arabia_: "Elephant Dance" Date: Sat, 24 Sep 2022 15:17:43 +0200 Message-ID: <87pmfkykqw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > `+' and `P' in vc-dir-mode are nice, but it means that I have to wait > until `+' is done first. So what I want is a command that does the > pull, and if there's no conflicts, then do the push. > > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51964 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > `+' and `P' in vc-dir-mode are nice, but it means that I have to wait > until `+' is done first. So what I want is a command that does the > pull, and if there's no conflicts, then do the push. > > It seems like this shouldn't be too difficult -- vc-exec-after should be > able to do this somehow. I've now done this in Emacs 29. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 24 09:18:00 2022 Received: (at control) by debbugs.gnu.org; 24 Sep 2022 13:18:00 +0000 Received: from localhost ([127.0.0.1]:42701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc52e-0003u1-Gh for submit@debbugs.gnu.org; Sat, 24 Sep 2022 09:18:00 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc52d-0003tc-0K for control@debbugs.gnu.org; Sat, 24 Sep 2022 09:17:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OXPKgU2/ltoSy8dGUMXjeNG3MWJvi/F2tpWkcqN+dgU=; b=Ayi4r3T8RIEgUm6aFGocrxQubj wNBeiucqUkyhZhTHVNuYDsV0u3Wazoy3Fvo4DgisxfP/GSfoCFkn+/8iikjVOHCVDVnAdJCpb8pzS bNJvdxDa6waAU2F29+4N7HqYDAeBfN+NV2bwZYly5DTucmwbY6Q16paKZdU2WBxnzBaE=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oc52T-0003pN-M1 for control@debbugs.gnu.org; Sat, 24 Sep 2022 15:17:51 +0200 Date: Sat, 24 Sep 2022 15:17:49 +0200 Message-Id: <87o7v4ykqq.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51964 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 51964 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 51964 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 24 14:08:23 2022 Received: (at 51964) by debbugs.gnu.org; 24 Sep 2022 18:08:23 +0000 Received: from localhost ([127.0.0.1]:45249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc9Zf-000260-Hg for submit@debbugs.gnu.org; Sat, 24 Sep 2022 14:08:23 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:37909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc9Za-00025i-J5 for 51964@debbugs.gnu.org; Sat, 24 Sep 2022 14:08:21 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 7C7E3200003; Sat, 24 Sep 2022 18:08:09 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir In-Reply-To: <87pmfkykqw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 24 Sep 2022 15:17:43 +0200") Organization: LINKOV.NET References: <87wnl4wryu.fsf@gnus.org> <87pmfkykqw.fsf@gnus.org> Date: Sat, 24 Sep 2022 20:36:37 +0300 Message-ID: <86h70w8y12.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51964 Cc: 51964@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> `+' and `P' in vc-dir-mode are nice, but it means that I have to wait >> until `+' is done first. So what I want is a command that does the >> pull, and if there's no conflicts, then do the push. >> >> It seems like this shouldn't be too difficult -- vc-exec-after should be >> able to do this somehow. > > I've now done this in Emacs 29. I wonder why this couldn't be implemented by using the existing backend functions 'pull' and 'push'? Then the only thing required for a backend to support 'vc-pull-and-push' is just to return a process from the backend function 'pull'. IOW, I don't see a problem of moving the logic of vc-git-pull-and-push to vc-pull-and-push. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 24 14:30:17 2022 Received: (at 51964) by debbugs.gnu.org; 24 Sep 2022 18:30:17 +0000 Received: from localhost ([127.0.0.1]:45262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc9ur-0002dR-Fr for submit@debbugs.gnu.org; Sat, 24 Sep 2022 14:30:17 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc9un-0002d7-Bz for 51964@debbugs.gnu.org; Sat, 24 Sep 2022 14:30:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xra69L5ZqH3vSKifddGzezUKJSecEyVAD/bjqUPpLKc=; b=d3I6mBeN9bsyPlLerNyDJMNhBY 5ETfClA7Ao+dTsqf8N6D2Di8UXVCIkYbMAelioNni120sCHTGFq9PKMycBOsIC170Q3/2RsKv3aLh Ixeu2ibug6O9iI2l1yGLSIRCZddxk1TcBNoaAxtAivUwn6oEYddDq+5FaPCyKQ9wxc3U=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oc9ue-00064r-Fl; Sat, 24 Sep 2022 20:30:06 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#51964: 29.0.50; Wishlist: It'd be nice with a pull+push command in vc-dir In-Reply-To: <86h70w8y12.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 24 Sep 2022 20:36:37 +0300") References: <87wnl4wryu.fsf@gnus.org> <87pmfkykqw.fsf@gnus.org> <86h70w8y12.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXJyMayr7OWlKBX V2P28xr///9HRQ2EAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YJGBIaKXlJWpcAAAG0SURBVDjLrZPr deQwCIWFtwHADRipgYzoYE/6r2kvV35McpJ/y5mxZX1CvFu7RMXMVM+vrb2JgJrhKVbrc88oahJc eN1B5H12SuI/C0isS2szYsFOUCqqVhRXrCvdsYsteCMqTeyUEKfReqjIZR+u2dZON8q9S0HpFZey vt6EQCsi+w5g25AOpdqjWBpCh+Xe1cqDNw/4yR9UgmoVz51E7AB5WHgxebIrfuCh1geve0v7HqUX e97ZvVSYLSGAPj/krVp7hsDJpx4MHu/McD+vKtfX22A7P+qUPxYq9CZb5utLH+hKraK0syokzRY5 Tq25ZyrbZx3c4mynHJnHA2yfKvQgIVPuQtmKl2HMnMjyfmugA2ox8gBoMp6Oseoqz/zY42iSdCWu giK8MbeM9ie/1Xpkz8gJmzeIar8OlyrEGASXEQ+HQskFgl1A7gR9zGZ3w+JAh3WCPphitADOR8cb YNSgDLaBEZh3wJzj5QSqZyRRg2P5Gq/uAOw7GudIGXKFeQKgM6UgNWHlVa+ACtTi0uBwcvVMMpLo lcX+qnT66o2ouULgYGNN7d4+f5a/v4HP/wj+AQY+Z1k/V1ZPAAAAJXRFWHRkYXRlOmNyZWF0ZQAy MDIyLTA5LTI0VDE4OjI2OjQxKzAwOjAwTMEQPAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOS0y NFQxODoyNjo0MSswMDowMD2cqIAAAAAASUVORK5CYII= X-Now-Playing: DJ Rupture's _Curiosity Slowdown_: "Curiosity Slowdown (part 3)" Date: Sat, 24 Sep 2022 20:30:00 +0200 Message-ID: <87a66od3rr.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > I wonder why this couldn't be implemented by using the existing backend > functions 'pull' and 'push'? Then the only thing required for a backend > to support 'vc-pull-and-push' is just to return a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51964 Cc: 51964@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > I wonder why this couldn't be implemented by using the existing backend > functions 'pull' and 'push'? Then the only thing required for a backend > to support 'vc-pull-and-push' is just to return a process from the > backend function 'pull'. IOW, I don't see a problem of moving > the logic of vc-git-pull-and-push to vc-pull-and-push. That may well be possible -- I just don't know whether all the backends (that have -pull/-push) would be amenable to that. But I see there's only two of them bzr and hg, and looking at those briefly, it does indeed look like the implementation could be lifted up to vc-pull-and-push. From unknown Mon Aug 18 02:36:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 23 Oct 2022 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator