Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f5bd7b0

Browse files
aleftnyblom
authored andcommittedFeb 9, 2020
Use svn_repos_open() for Subversion 1.6
1 parent 59b3803 commit f5bd7b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/svn.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ int SvnPrivate::openRepository(const QString &pathToRepository)
179179
QString path = pathToRepository;
180180
while (path.endsWith('/')) // no trailing slash allowed
181181
path = path.mid(0, path.length()-1);
182-
#if SVN_VER_MAJOR == 1 && SVN_VER_MINOR < 9
182+
#if SVN_VER_MAJOR == 1 && SVN_VER_MINOR < 7
183+
SVN_ERR(svn_repos_open(&repos, QFile::encodeName(path), global_pool));
184+
#elif SVN_VER_MAJOR == 1 && SVN_VER_MINOR < 9
183185
SVN_ERR(svn_repos_open2(&repos, QFile::encodeName(path), NULL, global_pool));
184186
#else
185187
SVN_ERR(svn_repos_open3(&repos, QFile::encodeName(path), NULL, global_pool, scratch_pool));

0 commit comments

Comments
 (0)
Please sign in to comment.