Package PyFoam :: Package Basics :: Module GeneralVCSInterface
[hide private]
[frames] | no frames]

Module GeneralVCSInterface

source code

General interface to VCS implementations

Classes [hide private]
  GeneralVCSInterface
This is an abstract class that implements an interface to general VCS operations
Functions [hide private]
 
getVCS(vcs, path, init=False, tolerant=False)
Factory to create a proper VCS-interface
source code
 
whichVCS(dpath)
Diagnose which VCS a specific directory is under
source code
Function Details [hide private]

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

whichVCS(dpath)

source code 

Diagnose which VCS a specific directory is under

Returns a string that is consistent with the creation table in getVCS