[Unison-hackers] patch to allow partial force or prefer

Benjamin Pierce bcpierce at cis.upenn.edu
Wed Oct 12 10:13:00 EDT 2005


Cool.  Thanks for the patch!

    - B


On Oct 12, 2005, at 9:57 AM, Alan Schmitt wrote:

> Hello,
>
> Here is a patch that allows to state that some files should always  
> be sent from one side to the other ("forcepartial") or that  
> conflicts for some files should always resolved for a given root  
> ("preferpartial").
>
> The syntax is like one of predicates: to always force files in ".b"  
> to be propagated from b, one writes:
> forcepartial = Name *.b -> b
>
> As for the force and prefer options, one may choose "newer" or  
> "older" as the root.
>
> Caveats:
> - It was much simpler to keep the old "force" and "prefer" options  
> natively instead of trying to implement them using the partial  
> versions. As specified in the help, forcepartial overrides force,  
> and preferpartial overrides prefer, for the specified files.
> - The test that the roots make sense is not made until  
> synchronization start. To do it at start time one would need a way  
> to extract all the associations from a Pred.t. I'll look at this next.
>
> Alan
>
>
> <partial.patch>
>
>
> -- The hacker: someone who figured things out and made something  
> cool happen.
> .O.
> ..O
> OOO
>
>
> _______________________________________________
> 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