emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vc commit clears undo history


From: Sam Steingold
Subject: Re: vc commit clears undo history
Date: Mon, 03 Dec 2007 15:48:59 -0500
User-agent: Thunderbird 2.0.0.0 (X11/20070326)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Kastrup wrote:
> "Sam Steingold" <address@hidden> 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-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]