4D component to facilitate 4D integration with SVN.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Components/VC_SVN.4dbase
matrix/VC_SVN.4dbase
.gitattributes
.gitignore
README.md

README.md

VC_SVN v13

IMPORTANT NOTE

VC_SVN v13 is unlikely to receive further updates. I have a decent amount of work to do to fully support VC_Forms (which requires 4D v14) and there's no reason to make these changes in the v13 version. Plus there are some v14 features I would like to take advantage of. So future development will be happening in the VC_SVN v14 component only.

Description

The VC_SVN component extends the VC_Framework component by implementing the necessary "devhook" methods in order to support the standard actions:

  • VC_DEVHOOK_Create
  • VC_DEVHOOK_Update
  • VC_DEVHOOK_Delete

In particular VC_SVN does the following:

  • VC_DEVHOOK_Create - execute "svn add" for the indicated method.
  • VC_DEVHOOK_Update - returns True
  • VC_DEVHOOK_Delete - execute "svn delete" for the inidcated methdod.

Along with VC_Framework, the VC_SVN component facilitates automatic export of all methods in a 4D host database to text files on disk. If the host database is under revision control with subversion, these text files are appropriately managed. The VC_SVN component is designed to have zero impact on the host database. There is no startup code to install and nothing to configure. IMPORTANT NOTE: svn command line tools must be installed. Placing the 'svn' executable on the system path is advised as well. SVN 1.7+ is required.

Contents

  • The components folder contains the "VC_SVN.4dbase" component suitable for installation in any 4D v13 database.
  • The matrix folder contains the component source code.

Usage

Install both VC_Framework and "VC_SVN.4dbase" in a 4D database Components folder. Launch the host database in 4D. Open any method if one is not open.

IMPORTANT NOTE: VC_Framework is REQUIRED, VC_SVN does nothing without it.

IMPORTANT NOTE: svn command line tools must be installed. Placing the 'svn' executable on the system path is advised as well. SVN 1.7+ is required.

IMPORTANT NOTE: you must install the components in the Components folder, aliases are not supported.

If you modify the matrix database, you should build a new component. To build a new component, execute the VC_BLD_Build method from the matrix database (the matrix database uses the "BLD.4dbase" component).