PANT::Svn - PANT support for subversion operations


PANT documentation  | view source Contained in the PANT distribution.

Index


NAME

Top

PANT::Svn - PANT support for subversion operations

SYNOPSIS

Top

  use PANT;

  $svn = Svn();
  $svn->Run("svn update");
  if ($svn->HasUpdates()) {
    # increment version
    # run a build etc.
  }




ABSTRACT

Top

  This is part of a module to help construct automated build environments.
  This part is for help processing svn operations.

DESCRIPTION

Top

This module is part of a set to help run automated builds of a project and to produce a build log. This part is designed to provide support for svn. Most svn operations can be simply run as Command's from the main module, but occasionally you want to know if something has changed. For instance you may not want to run an auto build if nothing has changed since last time.

EXPORTS

Top

None

METHODS

Top

new($xml);

Constructor for a test object. Requires an XML::Writer object, which it will use for subsequent log construction. The PANT function SVN calls this constructor with the current xml stream. So normally you would call it via the accessor.

Run(command)

This command will run the given svn command, and will collect the output, pass it to the log stream, and analyse it too.

HasUpdate()

This is a boolean function that tells you if the last Run command detected any updates to the archive.

HasLocalMod()

This is a boolean function that tells you if the last Run command detected any local uncommitted updates to the the archive.

HasConflict()

This is a boolean function that tells you if the last Run command detected any conflicts.

SEE ALSO

Top

Makes use of XML::Writer to construct the build log.

AUTHOR

Top

Julian Onions, <julianonions@yahoo.nospam-co.uk>

COPYRIGHT AND LICENSE

Top


PANT documentation  | view source Contained in the PANT distribution.