Commit 85ef2954 authored by Friedemann Kleint's avatar Friedemann Kleint

Enable usage of "_svn" as internal directory name for TortoiseSVN.

Option for  TortoiseSVN to avoid hassle with other IDEs.
parent c358a685
......@@ -164,11 +164,22 @@ StatusList parseStatusOutput(const QString &output)
return changeSet;
// Return a list of names for the internal svn directories
static inline QStringList svnDirectories()
QStringList rc(QLatin1String(".svn"));
#ifdef Q_OS_WIN
// Option on Windows systems to avoid hassle with some IDEs
return rc;
// ------------- SubversionPlugin
SubversionPlugin *SubversionPlugin::m_subversionPluginInstance = 0;
SubversionPlugin::SubversionPlugin() :
......@@ -1100,8 +1111,13 @@ bool SubversionPlugin::managesDirectory(const QString &directory) const
bool SubversionPlugin::managesDirectory(const QDir &directory) const
const QString svnDir = directory.absoluteFilePath(m_svnDotDirectory);
return QFileInfo(svnDir).isDir();
const int dirCount = m_svnDirectories.size();
for (int i = 0; i < dirCount; i++) {
const QString svnDir = directory.absoluteFilePath(;
if (QFileInfo(svnDir).isDir())
return true;
return false;
QString SubversionPlugin::findTopLevelForDirectory(const QString &directory) const
......@@ -140,7 +140,7 @@ private:
bool commit(const QString &messageFile, const QStringList &subVersionFileList);
void cleanChangeTmpFile();
const QString m_svnDotDirectory;
const QStringList m_svnDirectories;
SubversionSettings m_settings;
Core::IVersionControl *m_versionControl;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment