Index: subversion/svnadmin/main.c =================================================================== --- subversion/svnadmin/main.c (revision 1049818) +++ subversion/svnadmin/main.c (working copy) @@ -1374,7 +1374,8 @@ 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)) {