- SEE ALSO
- BUGS, PATCHES & FIXES
VCS::Lite::Element - Minimal Version Control System - Element object
use VCS::Lite::Element; my $ele=VCS::Lite::Element->new('/home/me/dev/testfile.c'); my $lit=$ele->fetch( generation => 2); $ele->check_in( description => 'Fix the bug'); $ele->update; $ele->commit;
A VCS::Lite::Repository contains elements corresponding to the source files being version controlled. The files are real files on the local file system, but additional information about the element is held inside the repository.
This information includes the history of the element, in terms of its generations.
Constructs a VCS::Lite::Element for a given element in a repository. Returns undef if the element is not found in the repository.
my $lit=$ele->fetch( generation => 2); my $lit2=$ele->fetch( time => '2003-12-29T12:01:25');
The fetch method is used to retrieve generations from the repository. If no time or generation is specified, the latest generation is retrieved. The method returns a VCS::Lite object if successful or undef.
$ele->check_in( description => 'Fix bug in foo method');
This method creates a new latest generation in the repository for the element.
This applies any changes to $ele which have happened in the parent repository, i.e. the one that the current repository was checked out from.
Applies the latest generation change to the parent repository. Note: this updates the file inside the parent file tree; a call to update is required to update the repository.
BUGS, PATCHES & FIXES
There are no known bugs at the time of this release. However, if you spot a bug or are experiencing difficulties that are not explained within the POD documentation, please send an email to firstname.lastname@example.org or submit a bug to the RT system (see link below). However, it would help greatly if you are able to pinpoint problems or even supply a patch.
Fixes are dependent upon their severity and my availability. Should a fix not be forthcoming, please feel free to (politely) remind me.
Original Author: Ivor Williams (RIP) 2002-2009 Current Maintainer: Barbie <email@example.com> 2014
Copyright (c) Ivor Williams, 2002-2009 Copyright (c) Barbie, 2014
This distribution is free software; you can redistribute it and/or modify it under the Artistic Licence v2.