svnpush - command line interface for remote Subversion repository push
% svnpush init http://hosta/path http://hostb/path # run the actual mirroring % svnpush push http://hosta/path http://hostb/path
svnpush push a repository to another repository or parts of a repository to another repository
Initialize the desturl repository to be pushed from srcurl.
Check if desturl repository was pushed from srcurl and if it is up to date.
Invoke the push of srcurl to desturl
Possible options:
Initialzie desturl for pushing if not already done
Use <text> for every commit that is done during push
Push only changes between (including) the two given revision. Revision can also be HEAD which means the newest revision in the repository.
HEAD
Example:
svnpush push --create -r HEAD -m 'New Release' https://svn.example.com/repos https://svn2.example.com/release
This will push the HEAD revision of the first URL to the second URL. The direcory of the second URL will be created if it isn't there. If, since the last push, multiple revision had been commited to the source, they will be commited as one revision to the destination. If you leave out the -r option every revision in the source will be commited as one revision to the destination.
Invoke the push of for all reositories underneath srcurl to desturl given with as repos1 .. reposN. Only directories matching regex are replicated.
Gerald Richter <richter@dev.ecos.de>
A lot of ideas and code is taken from SVN::Mirror by Chia-liang Kao <clkao@clkao.org>
Copyright 2004 by Gerald Richter <richter@dev.ecos.de>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install SVN::Push::MirrorEditor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVN::Push::MirrorEditor
CPAN shell
perl -MCPAN -e shell install SVN::Push::MirrorEditor
For more information on module installation, please visit the detailed CPAN module installation guide.