Artifact 0008b2d0851bac4c85ad8d1529d7a6ce61e88e92:
- File s2/require.d/fsl/db/checkout.s2 — part of check-in [b1c814aa9a] at 2014-11-08 10:15:27 on branch trunk — cleanups in the Fossil require.s2 modules in prep for upcoming test code. (user: stephan size: 429)
/** 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; });