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

Benjamin Pierce bcpierce at cis.upenn.edu
Thu Jun 3 22:15:16 EDT 2010


For the moment, Unison just asks the OS to start a program called "fsmonitor.py," so it's going to get whatever the OS can find in the standard search path.  Which, I guess, should work iff typing "fsmonitor.py" directly on the command line does.

(We'll need to do something more serious about this in the long run, but I'm not clear on what's the best user interface.  Putting it in a preference isn't very nice because it could well be different on the two hosts, and there is no way to specify this in a preference.)

   - B


On Jun 3, 2010, at 10:09 PM, Gene Horodecki wrote:

> When I execute unison -repeat watch I get
> 
> $ ./unison -repeat watch
> /bin/sh: fsmonitor.py: not found
> 
> I even tried fully qualifying it in uitext.ml and rebuilding but I still 
> get it.
> 
> On 06/03/2010 8:16 AM, Benjamin Pierce wrote:
>> unison -repeat watch
>> 
>> On Jun 3, 2010, at 12:57 AM, Gene Horodecki wrote:
>> 
>> 
>>> On 05/31/2010 8:19 AM, Benjamin Pierce wrote:
>>> 
>>>> 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
>>>>> 
>>>>> 
>>>> _______________________________________________
>>>> Unison-hackers mailing list
>>>> Unison-hackers at lists.seas.upenn.edu
>>>> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers
>>>> 
>>>> 
>>> Ok I just got built on my windows machine in cygwin and one of my ubuntu
>>> machines.  Can you tell me how I start up the new filewatcher functionality?
>>> 
>>> _______________________________________________
>>> Unison-hackers mailing list
>>> Unison-hackers at lists.seas.upenn.edu
>>> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers
>>> 
>> _______________________________________________
>> Unison-hackers mailing list
>> Unison-hackers at lists.seas.upenn.edu
>> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers
>> 
> 
> 
> _______________________________________________
> 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