Mercurial > hg > easyhg
diff hgrunner.cpp @ 64:794db9353c7f
* Start rejigging the settings/repo-path dialog setup: startup dialog now asks for user name and email only
author | Chris Cannam |
---|---|
date | Wed, 17 Nov 2010 17:49:16 +0000 |
parents | 68aebc316898 |
children | 10eb97683aa9 |
line wrap: on
line diff
--- a/hgrunner.cpp Wed Nov 17 14:26:27 2010 +0000 +++ b/hgrunner.cpp Wed Nov 17 17:49:16 2010 +0000 @@ -76,16 +76,16 @@ { stdOut = QString::fromUtf8(proc -> readAllStandardOutput()); stdErr = QString::fromUtf8(proc -> readAllStandardError()); + + DEBUG << "saveOutput: " << stdOut.split("\n").size() << " line(s) of stdout, " << stdErr.split("\n").size() << " line(s) of stderr" << endl; + +// std::cerr << "stdout was " << stdOut.toStdString() << std::endl; } void HgRunner::setProcExitInfo(int procExitCode, QProcess::ExitStatus procExitStatus) { exitCode = procExitCode; exitStatus = procExitStatus; - - DEBUG << "setProcExitInfo: " << stdOut.split("\n").size() << " line(s) of stdout, " << stdErr.split("\n").size() << " line(s) of stderr"; - -// std::cerr << "stdout was " << stdOut.toStdString() << std::endl; } QString HgRunner::getLastCommandLine() @@ -96,6 +96,7 @@ void HgRunner::finished(int procExitCode, QProcess::ExitStatus procExitStatus) { setProcExitInfo(procExitCode, procExitStatus); + saveOutput(); isRunning = false; if (procExitCode == 0 || procExitStatus == QProcess::NormalExit) { @@ -142,7 +143,8 @@ QString cmdline = command; foreach (QString param, params) cmdline += " " + param; - DEBUG << "HgRunner: starting: " << cmdline; + DEBUG << "HgRunner: starting: " << cmdline << " with cwd " + << workingDir << endl; proc -> start(command, params); }