Login
Artifact [e98a662a0f]
Login

Artifact e98a662a0f8527562cca721010c9408a39bb57ce:


/**
   require.s2 module which returns either the repo db
   (specified by the -R|--repo-db=DBFILE script flags)
   or (if that fails)
*/
affirm Fossil;
if(Fossil.db){
    Fossil.db.repo && return Fossil.db.repo;
    Fossil.db.checkout && return Fossil.db.checkout;
    affirm Fossil.db.config /* that's the only other possibility */;
}
return requireS2(
['fsl/context'],
proc(fsl){
    var db;
    catch{
        return requireS2(['fsl/db/repo']).0 // fails if no -R|--repo-db=DBFILE flag specified
    };
    return requireS2(['fsl/db/checkout']).0;
});