Next: , Up: Adding support for new Version Control Systems


16.9.1 Custom VCS interfaces

The Version Control interface in GPS can be customized, either to refine the behavior of the existing system and adapt it to specific needs, or to add support for other Version Control systems.

Custom VCS interfaces are defined through XML files and Python plugins. Those files are read in the same location as all the other XML and Python customizations that GPS offers. See Customizing through XML and Python files for a complete description.

There are three steps to follow when creating a custom VCS interface. The first step is to describe the VCS itself, the second step is to implement actions corresponding to all the operations that this VCS can perform, and the third step is to define the layout of the menus. The following three sections (Describing a VCS, Implementing VCS actions, and Implementing VCS menus) describe those steps.

GPS is distributed with XML/Python files describing the interfaces to ClearCase, CVS, Subversion and Git. These XML/Python files are located in the directory share/gps/plug-ins in the GPS installation, and can be used as a reference for implementing new custom VCS interfaces.