Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Christian =?iso-8859-1?Q?H=F6ltje?= <docwhat <at> gerf.org>
Subject: Re: File not marked as 'M' when contents differ from repo
Newsgroups: gmane.comp.version-control.mercurial.general
Date: Saturday 7th July 2007 22:07:30 UTC (over 10 years ago)
* Matthieu Moy ([email protected]) [070707 03:43]:
> Christian Höltje  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
 
CD: 3ms