Artifact 1555a7a9b44fd2930aca2b4fb503edb475db7520:
- File s2/require.d/fsl/db/repoOrCheckout.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: 423)
/** require.s2 module which returns either the repo db (specified by the -R|--repo-db=DBFILE script flags) or (if that fails) */ return requireS2(['fsl/context'], proc(F){ affirm F.db; F.db.repo && return F.db.repo; F.db.checkout && return F.db.checkout; catch return requireS2(['fsl/db/repo']).0; // fails if no -R|--repo-db=DBFILE flag specified return requireS2(['fsl/db/checkout']).0; });