Olivier Poitrey > Cvs > Cvs::Command::Commit

Download:
Cvs-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  3
View/Report Bugs
Source  

NAME ^

Cvs::Command::Commit - commit changes to a CVS repository with Cvs.pm

SYNOPSIS ^

  use Cvs;
  my $cvs = new Cvs 'foo';

  open FILE, ">>changed.txt" or die $!;
  print FILE "appended text\n";
  close FILE;

  my $commit = $cvs->commit
    ( { recursive => 0, message => 'bar', },
      'changed.txt' );

  die $commit->error unless $commit->success;

DESCRIPTION ^

This module provides commit capability for Cvs.pm.

Parameters

local

Only examine files for committing in the current directory. Boolean.

recursive

Examine all subdirectories. Equivalent to the cvs commit -R option. Boolean.

message

A message to commit the file with. Defaults to the Cvs version.

force

Commit a file even if it hasn't been changed. Using force will also turn off recursion unless it's explicitly turned on with the 'recursive' option. Boolean.

revision

Commit to a revision.

SEE ALSO ^

Cvs::Result::Commit, Cvs, cvs(1).

AUTHOR ^

Steven Cotton <cotton@cpan.org>

LICENCE ^

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

COPYRIGHT ^

Copyright (C) 2003 - Olivier Poitrey

syntax highlighting: