Changeset View
Changeset View
Standalone View
Standalone View
plugins/subversion/kdevsvnplugin.cpp
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 80 | { | |||
---|---|---|---|---|---|
86 | qRegisterMetaType<KDevelop::VcsAnnotation>(); | 86 | qRegisterMetaType<KDevelop::VcsAnnotation>(); | ||
87 | qRegisterMetaType<KDevelop::VcsAnnotationLine>(); | 87 | qRegisterMetaType<KDevelop::VcsAnnotationLine>(); | ||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | KDevSvnPlugin::~KDevSvnPlugin() | 90 | KDevSvnPlugin::~KDevSvnPlugin() | ||
91 | { | 91 | { | ||
92 | } | 92 | } | ||
93 | 93 | | |||
94 | bool KDevSvnPlugin::isValidRemoteRepositoryUrl(const QUrl& remoteLocation) | ||||
95 | { | ||||
96 | const QString scheme = remoteLocation.scheme(); | ||||
97 | if (scheme == QLatin1String("svn") || | ||||
98 | scheme == QLatin1String("svn+ssh")) { | ||||
99 | return true; | ||||
100 | } | ||||
101 | return false; | ||||
102 | } | ||||
103 | | ||||
104 | | ||||
94 | bool KDevSvnPlugin::isVersionControlled(const QUrl &localLocation) | 105 | bool KDevSvnPlugin::isVersionControlled(const QUrl &localLocation) | ||
95 | { | 106 | { | ||
96 | ///TODO: also check this in the other functions? | 107 | ///TODO: also check this in the other functions? | ||
97 | if (!localLocation.isValid()) { | 108 | if (!localLocation.isValid()) { | ||
98 | return false; | 109 | return false; | ||
99 | } | 110 | } | ||
100 | 111 | | |||
101 | SvnInfoJob* job = new SvnInfoJob(this); | 112 | SvnInfoJob* job = new SvnInfoJob(this); | ||
▲ Show 20 Lines • Show All 427 Lines • Show Last 20 Lines |