From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] vc-bzr.el: avoid stomping files across hardlink branches. Date: Mon, 10 Nov 2008 21:47:03 -0500 Message-ID: References: <200810292207.58558.tim@penhey.net> <874p2h36n4.fsf@red-bean.com> <200811101529.36589.tim@penhey.net> <877i7bgq8u.fsf@red-bean.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226371645 24322 80.91.229.12 (11 Nov 2008 02:47:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2008 02:47:25 +0000 (UTC) Cc: Tim Penhey , Barry Warsaw , Emacs Development To: Karl Fogel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 11 03:48:26 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KzjIk-0002dO-G4 for ged-emacs-devel@m.gmane.org; Tue, 11 Nov 2008 03:48:23 +0100 Original-Received: from localhost ([127.0.0.1]:48505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzjHc-0005Ce-Pp for ged-emacs-devel@m.gmane.org; Mon, 10 Nov 2008 21:47:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzjHY-0005CZ-0n for emacs-devel@gnu.org; Mon, 10 Nov 2008 21:47:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzjHW-0005CN-AB for emacs-devel@gnu.org; Mon, 10 Nov 2008 21:47:07 -0500 Original-Received: from [199.232.76.173] (port=38131 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzjHW-0005CK-4j for emacs-devel@gnu.org; Mon, 10 Nov 2008 21:47:06 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:36686 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KzjHV-00053D-T2 for emacs-devel@gnu.org; Mon, 10 Nov 2008 21:47:05 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsEAGqBGElFxLQU/2dsb2JhbACBdsoNg1iBEQ X-IronPort-AV: E=Sophos;i="4.33,581,1220241600"; d="scan'208";a="29661086" Original-Received: from 69-196-180-20.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.20]) by ironport2-out.teksavvy.com with ESMTP; 10 Nov 2008 21:47:05 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 21B228997; Mon, 10 Nov 2008 21:47:03 -0500 (EST) In-Reply-To: <877i7bgq8u.fsf@red-bean.com> (Karl Fogel's message of "Mon, 10 Nov 2008 17:39:29 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105550 Archived-At: >>> Can we at least have an option to have emacs break hard links on edit? >> Yes, that would be good. It should work regardless of VC. People using >> hardlinked trees would know to use it. > So a variable, something like this?: > break-hardlinks-on-edit > "*When saving a file that exists under several names (i.e., has > multiple hardlinks), break the hardlink associated with > `buffer-file-name' and write to a new file, so that the other > instances of the file are not affected by the edits. > If `buffer-file-name' refers to a symlink, do not break the > symlink." > I'm happy to write this, just want to make sure I'm headed down the > right design path. That sounds good. Stefan