File not marked as 'M' when contents differ from repo

Christian Höltje docwhat at gerf.org
Sat Jul 7 17:07:30 CDT 2007


* Matthieu Moy (Matthieu.Moy at imag.fr) [070707 03:43]:
> Christian Höltje <docwhat at gerf.org> writes:
> > How about when the update happens, set the timestamp on the file
> > *back* a second or so?  ie, pretend you started waiting a second ago
> > instead of actually waiting?
> 
> I was thinking about something like this. It's not perfect, though:
> 
> $ make       # generated file gets time t
> $ hg update  # source file gets time t-1
> $ make       # generated file isn't re-generated.

Grr... I knew my idea wouldn't work. Hmm....

Well, a variation on the SVN one...
hg up would:
  * grab the time stamp now.
  * up date the files, setting the time stamp to the timestamp above.
  * wait till the time is timestamp+1.1 seconds (like SVN does).

Annoying, I know.  If you do updates on a hundred different
repositories, then it'll take over 100 seconds, even though it could
be done in less time.

The only other thing I can think of is add a switch to do the above
hack.  It would have to be carefully documented to explain what's up.

Unfortunately, we'll also have to add a flag to check some sort of
checksum incase someone does modify a file so that it doesn't change
that it can be found and dealt with.

Ciao!

-- 
I must confess, I was born at a very early age.
	-- Groucho Marx

The Doctor What: "What, Doctor What"             http://docwhat.gerf.org/
docwhat *at* gerf *dot* org                                        KF6VNC


More information about the Mercurial mailing list