Hi, This patch clears a deprecation warning during the "make".
The "svn_repos_fs_get_locks" function in "subversion/svnadmin/main.c" seems to be deprecated, but *still used*, causing a deprecation warning. It is clear from the "/subversion/libsvn_repos/deprecated.c" document that it calls "svn_repos_fs_get_locks" function by hardcoding the depth as infinity. So clearly this patch would be applicable. I wonder if "--with-depth" switch can be added to "svnadmin lslocks". :) Thanks and Regards Prabhu
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)) {
[[[ 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 <prabh...@collab.net> Suggested by: Kamesh Jayachandran <kam...@collab.net> ]]]