emacs-devel
[Top][All Lists]
Advanced

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

Re: vc-revert-hook?


From: Dan Nicolaescu
Subject: Re: vc-revert-hook?
Date: Thu, 08 May 2008 08:51:12 -0700

"Marshall, Simon" <address@hidden> writes:

  > >   > Without this, CVS (my backend VCS) or vc.el would leave the
  > reverted source
  > >   > file with the timestamp of the reverted revision, ie, older than
  > the modified
  > >   > file, and a dependency-based recompilation would be fooled into
  > thinking that
  > >   > the source file's compiled object file was up-to-date.
  > > 
  > > Are you sure?  A quick experiment showed that and after C-x v u the
  > file
  > > on disk had the time stamp set to the current time...
  > > Can you replicate the problem with emacs -Q?
  > 
  > Sure, with CVS:
  > 
  > risksun2 104> ls -l Makefile 
  > -r--r--r--   1 marshals gcms         707 May  2 11:33 Makefile
  > risksun2 105> pemacs -Q Makefile&
  > [1] 12298
  > 
  > Where pemacs is my 22.2 + patches to cc-mode from Alan.
  > In emacs, do C-x v v on Makefile, edit, save and:
  > 
  > risksun2 106> ls -l Makefile
  > -rw-r--r--   1 marshals gcms         708 May  8 08:50 Makefile
  > 
  > No surprise there.
  > In emacs, do C-x v u on Makefile, confirm and:
  > 
  > risksun2 107> ls -l Makefile
  > -r--r--r--   1 marshals gcms         707 May  2 11:33 Makefile
  > 
  > As you can see, the original timestamp is restored on reversion.
  > 
  > risksun2 108> env|grep CVS
  > CVSROOT=/repo/cvs
  > CVSREAD=read-only
  > risksun2 109> cvs -v

I followed the same steps and for me the time stamp got set to the
current time after revert.  The only difference is the cvs version:
 cvs -v

Concurrent Versions System (CVS) 1.11.22 (client/server)

Copyright (C) 2006 Free Software Foundation, Inc.

This is what comes by default with Fedora 8.





reply via email to

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