You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/07/02 18:18:30 UTC
svn commit: r1498997 - /subversion/trunk/subversion/libsvn_ra/util.c
Author: stsp
Date: Tue Jul 2 16:18:30 2013
New Revision: 1498997
URL: http://svn.apache.org/r1498997
Log:
* subversion/libsvn_ra/util.c
(svn_ra__assert_capable_server): Only call get_path() in error case, it's
not needed otherwise.
Modified:
subversion/trunk/subversion/libsvn_ra/util.c
Modified: subversion/trunk/subversion/libsvn_ra/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra/util.c?rev=1498997&r1=1498996&r2=1498997&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra/util.c (original)
+++ subversion/trunk/subversion/libsvn_ra/util.c Tue Jul 2 16:18:30 2013
@@ -92,14 +92,17 @@ svn_ra__assert_capable_server(svn_ra_ses
{
svn_boolean_t has;
SVN_ERR(svn_ra_has_capability(ra_session, &has, capability, pool));
- path_or_url = get_path(path_or_url, ra_session, pool);
if (! has)
- return svn_error_createf(SVN_ERR_UNSUPPORTED_FEATURE, NULL,
- _("The '%s' feature is not supported by '%s'"),
- capability,
- svn_path_is_url(path_or_url)
- ? path_or_url
- : svn_dirent_local_style(path_or_url, pool));
+ {
+ path_or_url = get_path(path_or_url, ra_session, pool);
+ return svn_error_createf(SVN_ERR_UNSUPPORTED_FEATURE, NULL,
+ _("The '%s' feature is not supported by '%s'"),
+ capability,
+ svn_path_is_url(path_or_url)
+ ? path_or_url
+ : svn_dirent_local_style(path_or_url,
+ pool));
+ }
}
return SVN_NO_ERROR;
}