[svk-users] SVK mirror sync problem - quoted spaces in url
Fabian Walk
f.walk at maul-theet.de
Wed Apr 16 05:31:12 EDT 2008
Hi,
thank you for the workaround now the synchronization works fine when I
use the -s option.
Now I can go on to integrate svk in our work flow and install the
patched version on the development PC's.
Thank you very much
Fabian
Cheng-Lung Sung schrieb:
> Hi,
> It seems we need to patch SVN/Mirror/Ra.pm, but before that
> here is a similar workaround,
>
> Please use this patch and try again :) (also note the first
> patch segment was already provided before).
>
> ==================================================================
> --- lib/SVK/Mirror.pm (revision 2736)
> +++ lib/SVK/Mirror.pm (local)
> @@ -118,6 +118,7 @@
> my $self = $class->SUPER::new($args);
>
> $self->{url} =~ s{/+$}{}g;
> + $self->{url} =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
>
> $self->pool( SVN::Pool->new(undef) )
> unless $self->pool;
> @@ -426,7 +427,11 @@
> my $target = $self->get_svkpath;
>
> my $lock_message = $self->_lock_message;
> + my $escaped_url = $self->url;
> + $escaped_url =~ s/([^0-9A-Za-z%\-\/:_.!~*'()])/sprintf("%%%02X", ord($1))/eg;
> +
> my $svm = SVN::Mirror->new(
> + source => $escaped_url,
> target_path => $self->path,
> repos => $self->depot->repos,
> config => SVK::Config->svnconfig,
> ==================================================================
>
> Best Regards,
> Cheng-Lung
More information about the svk-users
mailing list