You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2015/12/07 14:59:36 UTC

svn commit: r1718360 - /subversion/branches/ra-git/subversion/libsvn_ra_git/fetch.c

Author: rhuijben
Date: Mon Dec  7 13:59:35 2015
New Revision: 1718360

URL: http://svn.apache.org/viewvc?rev=1718360&view=rev
Log:
On the ra-git branch: Remove yet another call to a public ra api.

* subversion/libsvn_ra_git/fetch.c
  (svn_ra_git__git_fetch): Use vtable. Skip call in release mode.

Modified:
    subversion/branches/ra-git/subversion/libsvn_ra_git/fetch.c

Modified: subversion/branches/ra-git/subversion/libsvn_ra_git/fetch.c
URL: http://svn.apache.org/viewvc/subversion/branches/ra-git/subversion/libsvn_ra_git/fetch.c?rev=1718360&r1=1718359&r2=1718360&view=diff
==============================================================================
--- subversion/branches/ra-git/subversion/libsvn_ra_git/fetch.c (original)
+++ subversion/branches/ra-git/subversion/libsvn_ra_git/fetch.c Mon Dec  7 13:59:35 2015
@@ -242,9 +242,10 @@ svn_ra_git__git_fetch(svn_ra_session_t *
   git_repository *repos;
   git_remote *remote;
   git_remote_callbacks *callbacks;
-  svn_revnum_t youngest;
   apr_pool_t *subpool;
-
+#ifdef SVN_DEBUG
+  svn_revnum_t youngest;
+#endif
 
   /* Do one fetch per session. */
   if (sess->fetch_done && !refresh)
@@ -276,11 +277,13 @@ svn_ra_git__git_fetch(svn_ra_session_t *
                              NULL, NULL,
                              session->cancel_func, session->cancel_baton,
                              subpool));
-
-  SVN_ERR(svn_ra_get_latest_revnum(sess->local_session, &youngest,
+#ifdef SVN_DEBUG
+  SVN_ERR(sess->local_session->vtable->get_latest_revnum(
+                                   sess->local_session, &youngest,
                                    subpool));
 
   SVN_DBG(("Latest revision r%ld\n", youngest));
+#endif
   svn_pool_destroy(subpool);
 
   return SVN_NO_ERROR;