Hello all,
I need to set up a mirror of SVN repository. There are several
developers in our office in Poland while the main division is in USA
(and they don't really understand that our connection is very poor
quality) so we decided to mirror the remote SVN located on the US
server, which we normally accessed via svn+ssh://.
The simplest solution seems to be SVN::Mirror. I have set it up (version
0.67 downloaded from CPAN) and run it the following way:
$ svnadmin create --fs-type fsfs /repository
$ export SVMREPOS=/repository
$ svm init mirror svn+ssh://user@remote.svn.host/remote_repository
(public key authentication)
$ svm sync mirror
Here is where the first problem appears. When something breaks the
connection (and as I said the link is very poor quality) and I try to
resume it svm keeps displaying:
Waiting for sync lock on /mirror: host:1629.
How can I disable the lock? Deleting anything in repository/locks
results in breaking the repository down and I cannot do anything with it
anyway.
If everything runs fine I have a repository mirror at
file://$SVMREPOS/mirror. I create a local branch:
$ svn cp file://$SVMREPOS/mirror file://$SVMREPOS/svn-local
Then I can check out and do some changes to the code. Then I commit it
and get the following message:
Sending (files)
Transmitting file data .
Committed revision 8.
Now there is another problem. The svm POD says I should perform a svm
mergeback command. What are the parameters though? I figured out that
first parameter should be the path (here: 'mirror'), second should be
'svn-local', but how about the required third one? A revision? Revision
of what? I tried different values but each of them gets me an error
message (different types though):
$ svm mergeback mirror svn-local 7
Invalid filesystem path syntax: Invalid editor anchoring; at least one
of the input paths is not a directory and there was no source entry at
/usr/share/perl5/SVN/Mirror.pm line 413
$ svm mergeback mirror svn-local 8
committed via RA at /usr/share/perl5/SVN/Mirror.pm line 409.
$ svm mergeback mirror svn-local 8 (one more time)
A checksum mismatch occurred: Base checksum mismatch on
'src/scripts/ELFA/ELFA.pl':
expected: 06499a874fc782217f1370edcd4d1ea4
actual: 647035bd17fe330d4c474961525dfde9
at /usr/share/perl5/SVN/Mirror.pm line 413
SVN::Delta::Editor::AUTOLOAD('SVN::Delta::Editor=HASH(0x85a2db8)',
'_p_void=SCALAR(0x85a2fd4)', '06499a874 fc782217f1370edcd4d1ea4',
'_p_apr_pool_t=SCALAR(0x85a2ea8)') called at
/usr/share/perl5/SVN/Mirror.pm line 413
SVN::Mirror::mergeback('SVN::Mirror::Ra=HASH(0x855afac)', 7,
'svn-local', 8) called at /usr/bin/svm line 1 15
main::mergeback('mirror', 'svn-local', 8) called at /usr/bin/svm
line 124
After all this the actual revision on local (mirror) repository is 8 and
on remote repository is 6 so nothing was merged back.
I would appreciate any help as this mirroring drives me nuts and all of
us here really need the mirror to work.
Regards,
Maciek Ochalek
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 27 15:54:59 2005