blob: 6dba51a9a510bf52cc53856556a89ad482c6b5ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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
|