You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Alain <al...@gmail.com> on 2010/12/16 09:04:24 UTC

svnsync fails to connect to mirror repository but exits with code 0

Hello there,
Has anyone encountered such a scenario with svnsync, version 1.6.1 (r37116)
on WinXP?

svnsync fails to connect to the mirror repository but it still exits with
code 0.

Here is the test script (sensitive info has been edited) that I ran:

    svnsync synchronize http://mymirror/svn/myrepo --non-interactive
--username=xxxx --password=xxxx
    echo exitcode %ERRORLEVEL%

And this was the output:
    svnsync: OPTIONS of 'http://mymirror/svn/myrepo': could not connect to
server (http://mymirror)
    exitcode 0


I intended to craft some error message if svnsync fails (i.e. based on a
non-zero ERRORLEVEL) for whatever reason but the ERRORLEVEL value of zero
poses a problem. Any idea/pointer to share?

Thanks,
Alain

Re: svnsync fails to connect to mirror repository but exits with code 0

Posted by Alain <al...@gmail.com>.
Thanks Daniel for testing that out on the trunk.

I'll give it a try with the latest release then.


On Sun, Dec 19, 2010 at 3:00 AM, Daniel Shahaf <d....@daniel.shahaf.name>wrote:

> Alain wrote on Thu, Dec 16, 2010 at 17:04:24 +0800:
> > Hello there,
> > Has anyone encountered such a scenario with svnsync, version 1.6.1
> (r37116)
> > on WinXP?
> >
> > svnsync fails to connect to the mirror repository but it still exits with
> > code 0.
> >
> > Here is the test script (sensitive info has been edited) that I ran:
> >
> >     svnsync synchronize http://mymirror/svn/myrepo --non-interactive
> > --username=xxxx --password=xxxx
> >     echo exitcode %ERRORLEVEL%
> >
> > And this was the output:
> >     svnsync: OPTIONS of 'http://mymirror/svn/myrepo': could not connect
> to
> > server (http://mymirror)
> >     exitcode 0
> >
>
> I can't reproduce this with trunk:
>
> daniel3,3:/tmp/svn% $svnsync sync file://$PWD/r2
> svnsync: Unable to connect to a repository at URL '
> http://localhost:8081/t/r1'
> svnsync: Error running context: Connection refused
> zsh: exit 1     $svnsync sync file://$PWD/r2
>
> daniel3,3:/tmp/svn% $svnsync sync file://$PWD/r2 --config-option
> servers:global:http-library=neon
> svnsync: Unable to connect to a repository at URL '
> http://localhost:8081/t/r1'
> svnsync: OPTIONS of 'http://localhost:8081/t/r1': could not connect to
> server (http://localhost:8081)
> zsh: exit 1     $svnsync sync file://$PWD/r2 --config-option
> servers:global:http-library=neon
>
> >
> > I intended to craft some error message if svnsync fails (i.e. based on a
> > non-zero ERRORLEVEL) for whatever reason but the ERRORLEVEL value of zero
> > poses a problem. Any idea/pointer to share?
> >
> > Thanks,
> > Alain
>

Re: svnsync fails to connect to mirror repository but exits with code 0

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Alain wrote on Thu, Dec 16, 2010 at 17:04:24 +0800:
> Hello there,
> Has anyone encountered such a scenario with svnsync, version 1.6.1 (r37116)
> on WinXP?
> 
> svnsync fails to connect to the mirror repository but it still exits with
> code 0.
> 
> Here is the test script (sensitive info has been edited) that I ran:
> 
>     svnsync synchronize http://mymirror/svn/myrepo --non-interactive
> --username=xxxx --password=xxxx
>     echo exitcode %ERRORLEVEL%
> 
> And this was the output:
>     svnsync: OPTIONS of 'http://mymirror/svn/myrepo': could not connect to
> server (http://mymirror)
>     exitcode 0
> 

I can't reproduce this with trunk:

daniel3,3:/tmp/svn% $svnsync sync file://$PWD/r2
svnsync: Unable to connect to a repository at URL 'http://localhost:8081/t/r1'
svnsync: Error running context: Connection refused
zsh: exit 1     $svnsync sync file://$PWD/r2

daniel3,3:/tmp/svn% $svnsync sync file://$PWD/r2 --config-option servers:global:http-library=neon
svnsync: Unable to connect to a repository at URL 'http://localhost:8081/t/r1'
svnsync: OPTIONS of 'http://localhost:8081/t/r1': could not connect to server (http://localhost:8081)
zsh: exit 1     $svnsync sync file://$PWD/r2 --config-option servers:global:http-library=neon

> 
> I intended to craft some error message if svnsync fails (i.e. based on a
> non-zero ERRORLEVEL) for whatever reason but the ERRORLEVEL value of zero
> poses a problem. Any idea/pointer to share?
> 
> Thanks,
> Alain