Module::Release::Subversion - Use Subversion instead of CVS with Module::Release
In .releaserc
release_subclass Module::Release::Subversion
In your subclasses of Module::Release:
use base qw(Module::Release::Subversion);
Module::Release::Subversion subclasses Module::Release, and provides its own implementations of the check_cvs() and cvs_tag() methods that are suitable for use with a Subversion repository rather than a CVS repository.
check_cvs()
cvs_tag()
These methods are automatically exported in to the callers namespace using Exporter.
Check the state of the Subversion repository.
Tag the release in local Subversion.
The approach is fairly simple. svn info is run to extract the Subversion URL for the current directory, and the first occurence of '/trunk/' in the URL is replaced with '/tags/'. We check that the new URL exists, and then svn copy is used to do the tagging.
svn info
svn copy
Failures are non fatal, since the upload has already happened.
Nik Clayton <nik@FreeBSD.org>
Copyright 2004 Nik Clayton. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
None known.
Bugs should be reported to me via the CPAN RT system. http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Module::Release::Extras.
Module::Release
To install Module::Release::Extras, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Release::Extras
CPAN shell
perl -MCPAN -e shell install Module::Release::Extras
For more information on module installation, please visit the detailed CPAN module installation guide.