Login
checkout.s2 at [af1b0ff74b]
Login

File s2/require.d/fsl/db/checkout.s2 artifact 0008b2d085 part of check-in af1b0ff74b


/**
   require() plugin which returns a handle to the repo Db object for
   Fossil.require's shared Fossil.Context.  If no checkout has been
   opened when this is called, openCheckout() is called on the
   context, otherwise there are no side effects.
*/
return requireS2(['fsl/context'], proc(F){
    affirm const d = F.db;
    if(!d.checkout){
        F.openCheckout();
    }
    affirm d.checkout;
    return d.checkout;
});