You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ka...@apache.org on 2010/12/16 12:05:55 UTC

svn commit: r1049924 - /subversion/trunk/subversion/svnadmin/main.c

Author: kameshj
Date: Thu Dec 16 11:05:55 2010
New Revision: 1049924

URL: http://svn.apache.org/viewvc?rev=1049924&view=rev
Log:
Clear a deprecation warning during "make".

* subversion/svnadmin/main.c
  (subcommand_lslocks): svn_repos_fs_get_locks is deprecated, hence using the
   new svn_repos_fs_get_locks2 with depth as infinity.

Patch by: Prabhu Gnana Sundar <pr...@collab.net>
Suggested by: me
Tweaked by: me

Modified:
    subversion/trunk/subversion/svnadmin/main.c

Modified: subversion/trunk/subversion/svnadmin/main.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnadmin/main.c?rev=1049924&r1=1049923&r2=1049924&view=diff
==============================================================================
--- subversion/trunk/subversion/svnadmin/main.c (original)
+++ subversion/trunk/subversion/svnadmin/main.c Thu Dec 16 11:05:55 2010
@@ -1374,7 +1374,8 @@ subcommand_lslocks(apr_getopt_t *os, voi
   SVN_ERR(open_repos(&repos, opt_state->repository_path, pool));
 
   /* Fetch all locks on or below the root directory. */
-  SVN_ERR(svn_repos_fs_get_locks(&locks, repos, fs_path, NULL, NULL, pool));
+  SVN_ERR(svn_repos_fs_get_locks2(&locks, repos, fs_path, svn_depth_infinity,
+                                  NULL, NULL, pool));
 
   for (hi = apr_hash_first(pool, locks); hi; hi = apr_hash_next(hi))
     {