Fix an assertion in 'svnfsfs stats' with pre-v4 FSFS repositories.
* subversion/libsvn_fs_fs/fs_fs.c
(svn_fs_fs__min_unpacked_rev): MIN_UNPACKED_REV is always well-defined but
updating it is prohibited for non-packable
repos (so we would catch bugs in our logic).
@@ -1470,7 +1470,10 @@ svn_fs_fs__min_unpacked_rev(svn_revnum_t *min_unpacked,
{
fs_fs_data_t *ffd = fs->fsap_data;
+ /* Calling this for pre-v4 repos is illegal. */
+ if (ffd->format >= SVN_FS_FS__MIN_PACKED_FORMAT)
SVN_ERR(svn_fs_fs__update_min_unpacked_rev(fs, pool));
+
*min_unpacked = ffd->min_unpacked_rev;
return SVN_NO_ERROR;
