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

Alan Schmitt alan.schmitt at polytechnique.org
Wed Oct 12 09:57:27 EDT 2005


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: partial.patch
Type: application/octet-stream
Size: 4892 bytes
Desc: not available
Url : http://lists.seas.upenn.edu/pipermail/unison-hackers/attachments/20051012/8ad6615f/partial.obj
-------------- next part --------------


--  
The hacker: someone who figured things out and made something cool  
happen.
.O.
..O
OOO


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.seas.upenn.edu/pipermail/unison-hackers/attachments/20051012/8ad6615f/PGP.pgp


More information about the Unison-hackers mailing list