NAME

VcsTools::Source - Perl base class for some VcsTools components

SYNOPSIS

No synopsis given. Virtual class.

DESCRIPTION

This class is just a way not to duplicate functions.

Generic methods

check()

Checks r/w permission of the local file, the revision of the local file and lock state of the file.

The file must contain the $Revision: 1.1 $ keyword.

getRevision()

Will return the revision of the local file. Will return undef in case of problems.

Handling the VCS part

archiveLog(...)

Will modify the log (not the file) of a specified revision of the file in the VCS base.

Parameters are :

  • info: info hash that contains the new informations to update the log in the VCS base

  • revision: revision number of the log to update.

Returns an array ref containing the output of the VCS command in case of success, undef in case of problems.