forked from qt-creator/qt-creator
Vcs: Make VcsBaseClient return stderr on fullySynchronous execution
Change-Id: I7a72a2f865148d7cf375897ec944a45f4b440818 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -100,6 +100,11 @@ public:
|
||||
const QString &revision = QString(), int lineNumber = -1,
|
||||
const QStringList &extraOptions = QStringList()) = 0;
|
||||
|
||||
// Return converted command output, remove '\r' read on Windows
|
||||
static QString commandOutputFromLocal8Bit(const QByteArray &a);
|
||||
// Return converted command output split into lines
|
||||
static QStringList commandOutputLinesFromLocal8Bit(const QByteArray &a);
|
||||
|
||||
protected:
|
||||
void resetCachedVcsInfo(const QString &workingDir);
|
||||
virtual void annotateRevisionRequested(const QString &workingDirectory, const QString &file,
|
||||
@@ -217,7 +222,7 @@ protected:
|
||||
QString vcsEditorTitle(const QString &vcsCmd, const QString &sourceId) const;
|
||||
// Fully synchronous VCS execution (QProcess-based)
|
||||
bool vcsFullySynchronousExec(const QString &workingDir, const QStringList &args,
|
||||
QByteArray *output) const;
|
||||
QByteArray *outputData, QByteArray *errorData = 0) const;
|
||||
// Synchronous VCS execution using Utils::SynchronousProcess, with
|
||||
// log windows updating (using VcsBasePlugin::runVcs with flags)
|
||||
Utils::SynchronousProcessResponse vcsSynchronousExec(const QString &workingDir,
|
||||
|
||||
Reference in New Issue
Block a user