From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: vc-find-revision-no-save? Date: Tue, 25 Oct 2022 05:22:09 +0300 Message-ID: <83bkq0prqm.fsf@gnu.org> References: <878rl543co.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36113"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, dgutov@yandex.ru, john@yates-sheets.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 25 04:26:18 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 1on9dy-0009BD-6Z for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Oct 2022 04:26:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1on9aE-0003cm-Ha; Mon, 24 Oct 2022 22:22:26 -0400 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 1on9aD-0003c8-8n for emacs-devel@gnu.org; Mon, 24 Oct 2022 22:22:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1on9aB-0004Sz-OW; Mon, 24 Oct 2022 22:22:23 -0400 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=fhUNSis+FQwS2qEDGvDUJS/EEsXvlPS8GwmyZ8u4tYo=; b=WG48Dro6REfV tamWZ8wfYf1fPMBe0YMs+ZbQ0QFZABLX/ilcH/vunIYwdXPW7+haIacyPcs+qggUlzYNte9fbj1xF bXaeMSwtS8IwuMIAoQbYWk83IJ+MQH6uK8v1hdYzaztZOQSLSxyXp9qiXCJ8PSfTcFNiniRMSxADj xZTp77a1y6WlipRR9XQWMeeltqI+CFr27LgVzjBA+FvMk2zckCoB7VRjJNXxRNitU9rFogvjjPyiD WpP6gbDBM9h+TIvNin//SOOvZY+7FNv29vVLmLbc5z9EbKqmxH0rcJd9z/acMFN6z8rmPZqIItYlZ WTgDcEaDa8FKvhNdBrGNFA==; Original-Received: from [87.69.77.57] (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 1on9aB-0000mS-7F; Mon, 24 Oct 2022 22:22:23 -0400 In-Reply-To: (message from Stefan Monnier on Mon, 24 Oct 2022 17:10:49 -0400) 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: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298438 Archived-At: > From: Stefan Monnier > Cc: Dmitry Gutov , John Yates , > Emacs developers > Date: Mon, 24 Oct 2022 17:10:49 -0400 > > Philip Kaludercic [2022-10-24 16:02:15] wrote: > > Dmitry Gutov writes: > >> On 24.10.2022 03:27, John Yates wrote: > >>> Notice that the default is nil. What is the logic in allowing an > >>> historic revision to be associated with a file? Why is it not merely > >>> a readonly buffer with no backing file? > > I can answer this one: because back when we wrote this code, the "Git" > of the day was called "CVS" and getting a historic revision required > fetching it from the centralized server, so you were usually quite happy > to keep a local copy, even if you had to erase them manually every once > in a while. > > > If that is the motivation, is there a reason the files are stored on the > > current working directory, instead of using /tmp or ~/.cache? I have > > set that option to t which is a great improvement IMO, as I don't want > > to fill up my working directory with temporary files. > > I suspect the default should be changed, indeed. Could the default be backend-dependent? Then people who use the VCSes where you are "quite happy to keep a local copy" will still have their cake. That'd include CVS and SVN, I think.