Module GeneralVCSInterface
source code
General interface to VCS implementations
|
GeneralVCSInterface
This is an abstract class that implements an interface to general
VCS operations
|
|
getVCS(vcs,
path,
init=False,
tolerant=False)
Factory to create a proper VCS-interface |
source code
|
|
|
|
|
__package__ = ' PyFoam.Basics '
|
Imports:
chdir,
error,
exec_,
getcwd,
notImplemented,
os,
path,
subprocess
getVCS(vcs,
path,
init=False,
tolerant=False)
| source code
|
Factory to create a proper VCS-interface
- Parameters:
vcs - name of the VCS-implementation
path - path which is under version control
init - whether the Version-control should be initialized here
tolerant - If there is no interface for the VCS in question return None
|
Diagnose which VCS a specific directory is under
Returns a string that is consistent with the creation table in
getVCS
|