From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: vc-modify-change-comment for "modern" backend fix Date: Thu, 19 May 2022 05:58:52 -0400 Message-ID: References: <9f1b5ce9-270a-2cb4-d958-f7545fd7d373@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24504"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 19 12:01:40 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 1nrcyS-0006C4-9V for ged-emacs-devel@m.gmane-mx.org; Thu, 19 May 2022 12:01:40 +0200 Original-Received: from localhost ([::1]:58334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrcyR-0002uH-B1 for ged-emacs-devel@m.gmane-mx.org; Thu, 19 May 2022 06:01:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrcvq-0001st-JI for emacs-devel@gnu.org; Thu, 19 May 2022 05:58:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrcvk-0003N1-Ep; Thu, 19 May 2022 05:58:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=yDGhIHuFcpDqKvZUxRkIAEGm0wJrHj/rQ2tVKiYtVbc=; b=IEHdmeDTL8Aj RlmHZ6Wr7nc+L+WbSP4rpK1CM/XghagOovI6v5JDCA+bJ72dM7pKRRutIHGuyJFsE44XFF+Lr40H0 NFQyZwpI2pc0K2M/DElZEm3oGSxqAhqdT2tTrl9E+VxsOPUgJNw2FIMJTuZeAlklMKCMOx2MBY1V8 3WYXKIBH17BVvCEHcFNkrZtvJ8N1TWkNvcJ/NMnuaosIDk2z1AkQEPI+tixeV6niSxFIVm4yKcouK SC6hLSaRHqeOMuALQ/XjxY3hSgk+DPBOlo/JH7g+LDQM7WhGKC/Ai3I13WRS5gr0igyJn/yJKBpS9 KuCdUUo62QQ8f0vwlcoGLQ==; Original-Received: from ams by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nrcvk-00059B-0e; Thu, 19 May 2022 05:58:52 -0400 In-Reply-To: (message from Dmitry Gutov on Thu, 19 May 2022 12:25:47 +0300) 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" Xref: news.gmane.io gmane.emacs.devel:289957 Archived-At: > The backend command could be called 'extract-comment'. Which is somewhat > different from "log entry" because the latter seems to include the > headers, in VC parlance. > > > And you haven't explained thus far your plan for implementing > 'modify-change-comment' for e.g. Git. > > I have no plans on implementing such functionality for git. Okay, but how will this work in fossil? Similar to editing a single commit during a rebase? Fossil has no concept of rebase. Amending makes a new commit, and the last commit message is shown when viewing the timeline/log. ~/tt $ fossil timeline -R foo.fossil === 2022-05-17 === 09:42:27 [3b410767c6] Edit [73bf888ab97bd2c3|73bf888ab9]: Edit check-in comment. (user: ams) 07:50:06 [30aa7e8b06] Edit [73bf888ab97bd2c3|73bf888ab9]: Edit check-in comment. (user: ams) 07:33:59 [1c13590b96] Edit [73bf888ab97bd2c3|73bf888ab9]: Edit check-in comment. (user: ams) 07:30:34 [73bf888ab9] zork zork zborkrkrk (user: ams tags: trunk) 07:30:02 [40289e9363] initial empty check-in (user: ams tags: trunk) +++ no more data (5) +++ ~/tt $ fossil amend -m "this is a new message" 40289e9363 -R foo.fossil hash: 40289e9363e0e3e1fe5e2df9c9827fe65e51f547 2022-05-17 07:30:02 UTC tags: trunk comment: this is a new message (user: ams) ~/tt $ fossil timeline -R foo.fossil === 2022-05-19 === 09:56:34 [5a950dc2f6] Edit [40289e9363e0e3e1|40289e9363]: Edit check-in comment. (user: ams) === 2022-05-17 === 09:42:27 [3b410767c6] Edit [73bf888ab97bd2c3|73bf888ab9]: Edit check-in comment. (user: ams) 07:50:06 [30aa7e8b06] Edit [73bf888ab97bd2c3|73bf888ab9]: Edit check-in comment. (user: ams) 07:33:59 [1c13590b96] Edit [73bf888ab97bd2c3|73bf888ab9]: Edit check-in comment. (user: ams) 07:30:34 [73bf888ab9] zork zork zborkrkrk (user: ams tags: trunk) 07:30:02 [40289e9363] this is a new message (user: ams tags: trunk)