aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cvs/cvsplugin.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <[email protected]>2013-10-06 20:47:29 +0300
committerOrgad Shaneh <[email protected]>2013-10-10 18:59:43 +0200
commit7b08d993bff0951428d6a7cb2d402e9571df0550 (patch)
tree800d3d234873382f6f9d6d0ad2132fbed048f06e /src/plugins/cvs/cvsplugin.cpp
parent0bb9ab131eeb7ae1737a6dab32d703dab6239b8c (diff)
VCS: Pass workingDirectory for annotate
Required for supporting renames on annotate. The renamed file (and possibly its parent directory) doesn't exist anymore, so it shouldn't be passed as a working directory. Change-Id: I809e8df17c1dc5199e533b525244a668eccbcd5f Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/cvs/cvsplugin.cpp')
-rw-r--r--src/plugins/cvs/cvsplugin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/cvs/cvsplugin.cpp b/src/plugins/cvs/cvsplugin.cpp
index fdbd7ea1c36..646bc6b0871 100644
--- a/src/plugins/cvs/cvsplugin.cpp
+++ b/src/plugins/cvs/cvsplugin.cpp
@@ -923,10 +923,10 @@ void CvsPlugin::annotateCurrentFile()
annotate(state.currentFileTopLevel(), state.relativeCurrentFile());
}
-void CvsPlugin::vcsAnnotate(const QString &file, const QString &revision, int lineNumber)
+void CvsPlugin::vcsAnnotate(const QString &workingDirectory, const QString &file,
+ const QString &revision, int lineNumber)
{
- const QFileInfo fi(file);
- annotate(fi.absolutePath(), fi.fileName(), revision, lineNumber);
+ annotate(workingDirectory, file, revision, lineNumber);
}
bool CvsPlugin::edit(const QString &topLevel, const QStringList &files)
@@ -1274,8 +1274,8 @@ IEditor *CvsPlugin::showOutputInEditor(const QString& title, const QString &outp
<< "source=" << source << "Size= " << output.size() << " Type=" << editorType << debugCodec(codec);
QString s = title;
IEditor *editor = EditorManager::openEditorWithContents(id, &s, output.toUtf8());
- connect(editor, SIGNAL(annotateRevisionRequested(QString,QString,int)),
- this, SLOT(vcsAnnotate(QString,QString,int)));
+ connect(editor, SIGNAL(annotateRevisionRequested(QString,QString,QString,int)),
+ this, SLOT(vcsAnnotate(QString,QString,QString,int)));
CvsEditor *e = qobject_cast<CvsEditor*>(editor->widget());
if (!e)
return 0;