diff hgrunner.cpp @ 57:f583e44d9d31

* Update copyrights; add debug header
author Chris Cannam
date Tue, 16 Nov 2010 13:57:30 +0000
parents c76782c14371
children 8af90d057609
line wrap: on
line diff
--- a/hgrunner.cpp	Tue Nov 16 11:26:51 2010 +0000
+++ b/hgrunner.cpp	Tue Nov 16 13:57:30 2010 +0000
@@ -1,8 +1,22 @@
-/****************************************************************************
-** Copyright (C) Jari Korhonen, 2010 (under lgpl)
-****************************************************************************/
+/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
+
+/*
+    EasyMercurial
+
+    Based on HgExplorer by Jari Korhonen
+    Copyright (c) 2010 Jari Korhonen
+    Copyright (c) 2010 Chris Cannam
+    Copyright (c) 2010 Queen Mary, University of London
+    
+    This program is free software; you can redistribute it and/or
+    modify it under the terms of the GNU General Public License as
+    published by the Free Software Foundation; either version 2 of the
+    License, or (at your option) any later version.  See the file
+    COPYING included with this distribution for more information.
+*/
 
 #include "hgrunner.h"
+#include "debug.h"
 
 #include <QPushButton>
 #include <QListWidget>
@@ -160,9 +174,9 @@
     lastHgCommand = hgExePathAndName;
     lastParams = params.join(" ");
 
-    std::cerr << "HgRunner: starting: " << hgExePathAndName.toStdString() << " ";
-    foreach (QString param, params) std::cerr << param.toStdString() << " ";
-    std::cerr << std::endl;
+    QString cmdline = hgExePathAndName;
+    foreach (QString param, params) cmdline += " " + param;
+    DEBUG << "HgRunner: starting: " << cmdline;
 
     proc -> start(hgExePathAndName, params);