VCS: perforce, cvs, subversion: Goto current line in blame.

This commit is contained in:
Friedemann Kleint
2009-10-01 17:32:26 +02:00
parent 9ed075c60c
commit 01877b2c86
8 changed files with 58 additions and 9 deletions

View File

@@ -651,9 +651,11 @@ void PerforcePlugin::annotate(const QString &fileName)
const PerforceResponse result = runP4Cmd(args, QStringList(),
CommandToWindow|StdErrToWindow|ErrorToWindow, codec);
if (!result.error) {
const int lineNumber = VCSBase::VCSBaseEditor::lineNumberOfCurrentEditor(fileName);
const QFileInfo fi(fileName);
showOutputInEditor(tr("p4 annotate %1").arg(fi.fileName()),
result.stdOut, VCSBase::AnnotateOutput, codec);
Core::IEditor *ed = showOutputInEditor(tr("p4 annotate %1").arg(fi.fileName()),
result.stdOut, VCSBase::AnnotateOutput, codec);
VCSBase::VCSBaseEditor::gotoLineOfEditor(ed, lineNumber);
}
}