[Unison-hackers] treating some directories atomically, and ignoring socket files

Benjamin C. Pierce bcpierce at cis.upenn.edu
Mon Jul 13 17:35:01 EDT 2015


Thanks for the patches, Julian.  I’ve just (belatedly) committed them to the unison trunk.  

I made one small change: instead of 

Pred.test Globals.atomic (Name.toString n)

I used

	Pred.test Globals.atomic (Path.toString path) 

for consistency with other predicates.

Best,

   - Benjamin


> On Jan 14, 2015, at 8:31 AM, Julian Squires <julian at cipht.net> wrote:
> 
> Thanks for the feedback, everyone.  I like the idea of the "up" action
> in the text UI, but implementing it right now was outside the scope of
> what I was working on.
> 
> I've attached patches that implement an atomic option, so you can
> specify, e.g., "-atomic Name\ .git -atomic Name\ .svn", and these
> directories will be treated indivisibly.  Presumably one can use the
> pattern matching facilities of this kind of predicate to match
> packages on OS X but I haven't investigated it.
> 
> I have no doubt there are improvements that can be made to how I have
> implemented this, so I welcome your comments.
> 
> -- 
> Julian Squires
> <0001-Add-atomic-option-as-a-global-predicate.patch><0002-Add-acceptance-test-for-git-directory-atomicity.patch><0003-Add-handling-of-atomic-directories.patch>_______________________________________________
> Unison-hackers mailing list
> Unison-hackers at lists.seas.upenn.edu
> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.seas.upenn.edu/pipermail/unison-hackers/attachments/20150713/ebfc1c7f/attachment.html>


More information about the Unison-hackers mailing list