[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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

From: Alain <alain.ets_at_gmail.com>
Date: Thu, 16 Dec 2010 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 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
Received on 2010-12-16 10:05:02 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.