PyFoam.Basics.GitInterface module

A VCS-interface to Mercurial

class PyFoam.Basics.GitInterface.GitInterface(path, init=False)[source]

Bases: PyFoam.Basics.GeneralVCSInterface.GeneralVCSInterface

The interface class to git

Only a partial implementation (As much as the BuildHelper needs)

__init__(path, init=False)[source]
Parameters:
  • path – path which is supposed to be under version control
  • init – initialize the version control system here
__module__ = 'PyFoam.Basics.GitInterface'
branchName()[source]

Return the branch-name (or another identifying string)

getRevision()[source]

Get the current revision number

getRoot(path)[source]

Returns the actual repository root for a path. Default implmentation passes through the path

update(timeout=None)[source]

Update the working copy from the parent repository :param timeout: Wait a maximum time (if the VCS supports this)