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

Why does svn status silently ignore repository errors?

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-01-18 21:42:22 CET

Hello

While svn.collab.net was unreacheable I noticed that 'svn st -u'
silently ignores errors if it is unable to contact the repository.
I only noticed because the Head revision line was missing, I could
easily (and did for a while) overlooked that.

>From add_update_info_to_status_hash()

  /* Get the RA library that handles URL. */
  SVN_ERR (svn_ra_init_ra_libs (&ra_baton, pool));
  if (svn_ra_get_ra_library (&ra_lib, ra_baton, URL->data, pool) != NULL)
    return SVN_NO_ERROR;

  /* Open a repository session to the URL. */
  /* ### if we're supposed to talk to the repos, then it better be there */
  if (svn_client__open_ra_session (&session, ra_lib, URL, anchor,
                                   TRUE, TRUE, auth_baton, pool) != NULL)
    return SVN_NO_ERROR;

What is the rationale for this?

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:57 2006

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

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