Preserving timestamps
Miguel Freitas
miguel at cpti.cetuc.puc-rio.br
Mon Aug 6 14:45:29 CDT 2007
Hi Matt,
On 8/6/07, Matt Mackall <mpm at selenic.com> wrote:
> > My question is, i know preserving mtimes is bad in general, but is it
> > possible to implement this feature for a specific set of files in a
> > repository?
>
> You should be able to do it with a pair of hooks. The precommit hook
> stores the relevant filenames and dates in a file to be committed
> (".mytimestamps", perhaps), the update hook reads the file and applies
> the dates to the listed files.
I see. This is about the same approach i've discussed with my coworkers...
Two more questions, before i start doing anything.
By any chance, do any of the hg hackers around would like implementing
this extension? it might be fun ;-)
If not, and if we implement this thing ourselves, would you like a
patch to include in hg distribution or something?
Thanks for the help. And btw, i used to use cvs... mercurial rocks ;-)
Miguel
More information about the Mercurial
mailing list