diff hgrunner.cpp @ 43:c32067cd19f8

* Some experiments towards a graph history view
author Chris Cannam
date Sun, 07 Nov 2010 19:59:54 +0000
parents 45bfb8dc1faf
children bed7ab59f62e
line wrap: on
line diff
--- a/hgrunner.cpp	Thu Jun 24 23:41:21 2010 +0300
+++ b/hgrunner.cpp	Sun Nov 07 19:59:54 2010 +0000
@@ -6,6 +6,7 @@
 #include <QtCore>
 #include <QtGui>
 
+#include <iostream>
 #include <unistd.h>
 
 HgRunner::HgRunner(QWidget * parent): QProgressBar(parent)
@@ -40,6 +41,7 @@
     exitStatus = procExitStatus;
     stdOut = proc -> readAllStandardOutput();
     stdErr = proc -> readAllStandardError();
+    std::cerr << "stdout was " << stdOut.toStdString() << std::endl;
 }
 
 void HgRunner::presentErrorToUser()
@@ -149,6 +151,10 @@
     lastHgCommand = hgExePathAndName;
     lastParams = params.join(" ");
 
+    std::cerr << "HgRunner: starting: " << hgExePathAndName.toStdString();
+    foreach (QString param, params) std::cerr << param.toStdString() << " ";
+    std::cerr << std::endl;
+
     proc -> start(hgExePathAndName, params);
 
 }