[Unison-hackers] File watcher: Question about state file

Benjamin Pierce bcpierce at cis.upenn.edu
Mon May 31 09:19:17 EDT 2010


One thing it's used for is to tell the filewatcher when was the last time it was running, so that it can report files changed since then.  That is, it will tell Unison not just what files are changing right now, but what files have changed since the last time we ran Unison with "-repeat watch" for these replicas.

However, I don't think this scheme is safe -- it could cause us to miss changes if Unison simply trusts it.  It is better to start the change detection at the moment where Unison starts up the filewatcher and then make Unison do a full scan of the filesystems itself, to make sure it finds everything that has changed since the last run.  

So I propose removing the --statefile functionality (assuming that was the only thing Christophe was using it for).

   - B


On May 30, 2010, at 8:47 PM, Gene Horodecki wrote:

> What is the --statefile for?  I did not implement it in my win32 section.
> 
> _______________________________________________
> Unison-hackers mailing list
> Unison-hackers at lists.seas.upenn.edu
> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers



More information about the Unison-hackers mailing list