Skip to content

Commit f5bd7b0

Browse files
aleftnyblom
authored andcommitted
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

Diff for: src/svn.cpp

+3-1
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)