blob: 6dba51a9a510bf52cc53856556a89ad482c6b5ef (
plain) (
tree)
|
|
def rcs_by_name(rcs_name):
"""Return the module for the RCS with the given name"""
if rcs_name == "Arch":
import arch
return arch
elif rcs_name == "None":
import no_rcs
return no_rcs
def detect(dir):
"""Return the module for the rcs being used in this directory"""
import arch
if arch.detect(dir):
return arch
import no_rcs
return no_rcs
|