From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] vc-bzr.el: avoid stomping files across hardlink branches. Date: Mon, 10 Nov 2008 17:39:29 -0500 Message-ID: <877i7bgq8u.fsf@red-bean.com> References: <200810292207.58558.tim@penhey.net> <874p2h36n4.fsf@red-bean.com> <200811101529.36589.tim@penhey.net> Reply-To: Karl Fogel NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226356789 17236 80.91.229.12 (10 Nov 2008 22:39:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2008 22:39:49 +0000 (UTC) Cc: Tim Penhey , Barry Warsaw , Emacs Development To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 10 23:40:50 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 1KzfRB-0008KE-Pq for ged-emacs-devel@m.gmane.org; Mon, 10 Nov 2008 23:40:50 +0100 Original-Received: from localhost ([127.0.0.1]:45557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzfQ4-0006xN-4c for ged-emacs-devel@m.gmane.org; Mon, 10 Nov 2008 17:39:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzfPz-0006x8-AB for emacs-devel@gnu.org; Mon, 10 Nov 2008 17:39:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzfPx-0006wl-5V for emacs-devel@gnu.org; Mon, 10 Nov 2008 17:39:33 -0500 Original-Received: from [199.232.76.173] (port=58553 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzfPx-0006wV-1u for emacs-devel@gnu.org; Mon, 10 Nov 2008 17:39:33 -0500 Original-Received: from sanpietro.red-bean.com ([66.146.193.61]:38609) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KzfPw-0003jA-Rk for emacs-devel@gnu.org; Mon, 10 Nov 2008 17:39:32 -0500 Original-Received: from localhost ([127.0.0.1]:38558 helo=floss) by sanpietro.red-bean.com with esmtp (Exim 4.69) (envelope-from ) id 1KzfPt-0004pw-Qj; Mon, 10 Nov 2008 16:39:29 -0600 In-Reply-To: (Stefan Monnier's message of "Sun, 09 Nov 2008 22:31:05 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:105546 Archived-At: Stefan Monnier writes: >> 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. -Karl