The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

PANT::Svn - PANT support for subversion operations

SYNOPSIS

  use PANT;

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

ABSTRACT

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

DESCRIPTION

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

None

METHODS

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

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

AUTHOR

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

COPYRIGHT AND LICENSE

Copyright 2005 by Julian Onions

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.