Permalink
Browse files

Pass global revision to path_repo_test()

  • Loading branch information...
1 parent c4a3f94 commit f785e1a02e8fec51eaddd6ef67e9e5cffbd7f333 @jgehring committed Apr 7, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 src/dump.c
  2. +3 −3 src/path_repo.c
  3. +1 −1 src/path_repo.h
View
@@ -548,7 +548,7 @@ char dump(session_t *session, dump_options_t *opts)
break;
}
#ifdef DEBUG_PATH_REPO
- if (path_repo_test(path_repo, session, local_rev, revpool) != 0) {
+ if (path_repo_test(path_repo, session, local_rev, APR_ARRAY_IDX(logs, list_idx, log_revision_t).revision, revpool) != 0) {
ret = 1;
break;
}
View
@@ -656,7 +656,7 @@ signed char path_repo_check_parent(path_repo_t *repo, const char *parent, const
#ifdef DEBUG
/* Verifies a given revision */
-int path_repo_test(path_repo_t *repo, session_t *session, svn_revnum_t revision, apr_pool_t *pool)
+int path_repo_test(path_repo_t *repo, session_t *session, svn_revnum_t revision, svn_revnum_t svn_rev, apr_pool_t *pool)
{
apr_array_header_t *paths_recon;
apr_array_header_t *paths_orig;
@@ -672,7 +672,7 @@ int path_repo_test(path_repo_t *repo, session_t *session, svn_revnum_t revision,
/* Retrieve actual tree -- assume the session is rooted at a directory */
paths_orig = apr_array_make(pool, 0, sizeof(char *));
- pr_fetch_paths(paths_orig, "", revision, session, pool);
+ pr_fetch_paths(paths_orig, "", svn_rev, session, pool);
utils_sort(paths_orig);
/* Skip empty root element from original tree (HACK!) */
@@ -724,7 +724,7 @@ int path_repo_test_all(path_repo_t *repo, session_t *session, apr_pool_t *pool)
continue;
}
- ret = path_repo_test(repo, session, rev, revpool);
+ ret = path_repo_test(repo, session, rev, rev, revpool);
svn_pool_clear(revpool);
}
return ret;
View
@@ -62,7 +62,7 @@ extern signed char path_repo_check_parent(path_repo_t *repo, const char *parent,
#ifdef DEBUG
/* Testing */
-extern int path_repo_test(path_repo_t *repo, session_t *session, svn_revnum_t revision, apr_pool_t *pool);
+extern int path_repo_test(path_repo_t *repo, session_t *session, svn_revnum_t revision, svn_revnum_t svn_rev, apr_pool_t *pool);
extern int path_repo_test_all(path_repo_t *repo, session_t *session, apr_pool_t *pool);
#endif

0 comments on commit f785e1a

Please sign in to comment.