aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vcsbase/vcsbaseclient.cpp
diff options
context:
space:
mode:
authorTobias Hunger <[email protected]>2015-04-13 11:38:44 +0200
committerTobias Hunger <[email protected]>2015-04-13 10:40:58 +0000
commita55fb4a378644ab641f0663c8f2577f48a905491 (patch)
tree0be73f6792df29cb4b89dc9753074a0352696ace /src/plugins/vcsbase/vcsbaseclient.cpp
parented5136897947ac863312eafebd5f26940e887b8c (diff)
Vcs: Move annotate and annotateRevisionRequested into VcsBaseClientImpl
... and use that in the Git client. Change-Id: Ie70ec0d5908776d11eb69613d45f565d4f0ce32b Reviewed-by: Orgad Shaneh <[email protected]> Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseclient.cpp')
-rw-r--r--src/plugins/vcsbase/vcsbaseclient.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp
index 2412355b303..75760e3150a 100644
--- a/src/plugins/vcsbase/vcsbaseclient.cpp
+++ b/src/plugins/vcsbase/vcsbaseclient.cpp
@@ -175,6 +175,19 @@ void VcsBaseClientImpl::resetCachedVcsInfo(const QString &workingDir)
Core::VcsManager::resetVersionControlForDirectory(workingDir);
}
+void VcsBaseClientImpl::annotateRevisionRequested(const QString &workingDirectory,
+ const QString &file, const QString &change,
+ int line)
+{
+ QString changeCopy = change;
+ // This might be invoked with a verbose revision description
+ // "SHA1 author subject" from the annotation context menu. Strip the rest.
+ const int blankPos = changeCopy.indexOf(QLatin1Char(' '));
+ if (blankPos != -1)
+ changeCopy.truncate(blankPos);
+ annotate(workingDirectory, file, changeCopy, line);
+}
+
int VcsBaseClientImpl::vcsTimeout() const
{
return settings().intValue(VcsBaseClientSettings::timeoutKey);
@@ -650,19 +663,6 @@ void VcsBaseClient::statusParser(const QString &text)
emit parsedStatus(lineInfoList);
}
-void VcsBaseClient::annotateRevisionRequested(const QString &workingDirectory,
- const QString &file, const QString &change,
- int line)
-{
- QString changeCopy = change;
- // This might be invoked with a verbose revision description
- // "SHA1 author subject" from the annotation context menu. Strip the rest.
- const int blankPos = changeCopy.indexOf(QLatin1Char(' '));
- if (blankPos != -1)
- changeCopy.truncate(blankPos);
- annotate(workingDirectory, file, changeCopy, line);
-}
-
} // namespace VcsBase
#include "moc_vcsbaseclient.cpp"