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/03/10 12:37:11 UTC
svn commit: r1665484 - /subversion/trunk/subversion/libsvn_repos/replay.c
Author: rhuijben
Date: Tue Mar 10 11:37:10 2015
New Revision: 1665484
URL: http://svn.apache.org/r1665484
Log:
Following up on r1665456, re-enable svn_repos_replay to handle an
SVN_INVALID_REVNUM low water mark as r0, even though the higher api
layers don't support this flag.
* subversion/libsvn_repos/replay.c
(svn_repos_replay2): Handle invalid low water mark as r0.
Modified:
subversion/trunk/subversion/libsvn_repos/replay.c
Modified: subversion/trunk/subversion/libsvn_repos/replay.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/replay.c?rev=1665484&r1=1665483&r2=1665484&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/replay.c (original)
+++ subversion/trunk/subversion/libsvn_repos/replay.c Tue Mar 10 11:37:10 2015
@@ -861,8 +861,6 @@ svn_repos_replay2(svn_fs_root_t *root,
apr_array_header_t *paths;
struct path_driver_cb_baton cb_baton;
- SVN_ERR_ASSERT(SVN_IS_VALID_REVNUM(low_water_mark));
-
/* Special-case r0, which we know is an empty revision; if we don't
special-case it we might end up trying to compare it to "r-1". */
if (svn_fs_is_revision_root(root) && svn_fs_revision_root_revision(root) == 0)
@@ -920,6 +918,11 @@ svn_repos_replay2(svn_fs_root_t *root,
}
}
+ /* If we were not given a low water mark, assume that everything is there,
+ all the way back to revision 0. */
+ if (! SVN_IS_VALID_REVNUM(low_water_mark))
+ low_water_mark = 0;
+
/* Initialize our callback baton. */
cb_baton.editor = editor;
cb_baton.edit_baton = edit_baton;
@@ -964,7 +967,10 @@ svn_repos_replay2(svn_fs_root_t *root,
const char *repos_root = "";
void *unlock_baton;
- SVN_ERR_ASSERT(SVN_IS_VALID_REVNUM(low_water_mark));
+ /* If we were not given a low water mark, assume that everything is there,
+ all the way back to revision 0. */
+ if (! SVN_IS_VALID_REVNUM(low_water_mark))
+ low_water_mark = 0;
/* Special-case r0, which we know is an empty revision; if we don't
special-case it we might end up trying to compare it to "r-1". */