[Unison-hackers] PATCH: Bugfix unison -times support for directories

Robert Hardy rhardy at teledyne.com
Fri Mar 20 22:17:19 EDT 2009


I was thinking about this and seems that when ever a file is added/removed from a directory on the destination, the parent directory's is being changed to mtime of now. I think if when using the -times option, we store the parent dir's mtime before a file change and restore it after the change it should be ok with the patch I sent already. I'm not 100% sure but it seems reasonable, mind you I have a cold :P

I spent some time digging for when to implement that but got tired and gave up for now. If anyone has suggestions that would help.

Rob

------- Original message -------
From: Benjamin Pierce <bcpierce at cis.upenn.edu>
Sent: 3/20,  17:57

> > Sorry it took so long to reply. It seems you are right, while this  
> > does work for the initial replication, if a file changes the parent's > > directory's modtime will be changed to the wrong time. Any idea
> > how we can fix the -times option properly?
> 
> I don't remember what was the issue with OCaml for propagating  
> directory modtimes.  Maybe Trevor or Jerome does?



More information about the Unison-hackers mailing list