From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: vc commit clears undo history Date: Mon, 03 Dec 2007 15:48:59 -0500 Message-ID: <47546BBB.1060605@gnu.org> References: <858x4bfrt3.fsf@lola.goethe.zz> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196715007 7086 80.91.229.12 (3 Dec 2007 20:50:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2007 20:50:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 03 21:50:16 2007 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 1IzIF4-0007YV-2y for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 21:50:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzIEn-00054c-Pw for ged-emacs-devel@m.gmane.org; Mon, 03 Dec 2007 15:49:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzIE1-0004dV-R6 for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:49:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzIDz-0004cJ-Vm for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:49:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzIDz-0004cC-Ps for emacs-devel@gnu.org; Mon, 03 Dec 2007 15:49:07 -0500 Original-Received: from janestcapital.com ([66.155.124.107] helo=smtp.janestcapital.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzIDu-0005G1-Gw; Mon, 03 Dec 2007 15:49:02 -0500 Original-Received: from [172.25.131.105] [38.96.172.125] by janestcapital.com with ESMTP (SMTPD-9.10) id ABBC0554; Mon, 03 Dec 2007 15:49:00 -0500 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) Original-Followup-To: gmane.emacs.devel In-Reply-To: <858x4bfrt3.fsf@lola.goethe.zz> X-Enigmail-Version: 0.95.5 X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:84598 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Kastrup wrote: > "Sam Steingold" writes: > >> GNU Emacs 23.0.50.29 (x86_64-unknown-linux-gnu, GTK+ Version 2.8.20) >> of 2007-12-03 on nyc-qws-005 >> '-with-gtk' '-with-gif=no' >> >> a long-standing bug (bad feature?) is that when a file is committed >> using vc (C-x v v) or pcvs (c in *cvs* buffer), it buffer's undo history >> is discarder. > > I think the rationale for that might be that in order to have the files > identifiable as unmodified, some version control systems might do a > recheckout on them, and replace strings like $Id: whatever$ with > different information. In any case, a revert-buffer is done on the file > after checking it in, I believe. > > It might not be easy to get consistent undo information in this case. fwiw, "other vc interfaces", such as dvc (which interfaces to distributed VCs (haz/hg/git &c), do not discard the undo information after a commit. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHVGu7Pp1Qsf2qnMcRAvg3AJ9NhgEuV/Hd57OoiuBV6Wd1J4Ch9QCeMiBS pWPh5yPidKRjkWQUoOUr1YM= =Zsp3 -----END PGP SIGNATURE-----