Mercurial > hg > easyhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
56:1394c8cbf991 | 57:f583e44d9d31 |
---|---|
1 /**************************************************************************** | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
2 ** Copyright (C) Jari Korhonen, 2010 (under lgpl) | 2 |
3 ****************************************************************************/ | 3 /* |
4 EasyMercurial | |
5 | |
6 Based on HgExplorer by Jari Korhonen | |
7 Copyright (c) 2010 Jari Korhonen | |
8 Copyright (c) 2010 Chris Cannam | |
9 Copyright (c) 2010 Queen Mary, University of London | |
10 | |
11 This program is free software; you can redistribute it and/or | |
12 modify it under the terms of the GNU General Public License as | |
13 published by the Free Software Foundation; either version 2 of the | |
14 License, or (at your option) any later version. See the file | |
15 COPYING included with this distribution for more information. | |
16 */ | |
4 | 17 |
5 #include "hgrunner.h" | 18 #include "hgrunner.h" |
19 #include "debug.h" | |
6 | 20 |
7 #include <QPushButton> | 21 #include <QPushButton> |
8 #include <QListWidget> | 22 #include <QListWidget> |
9 #include <QDialog> | 23 #include <QDialog> |
10 #include <QLabel> | 24 #include <QLabel> |
158 } | 172 } |
159 | 173 |
160 lastHgCommand = hgExePathAndName; | 174 lastHgCommand = hgExePathAndName; |
161 lastParams = params.join(" "); | 175 lastParams = params.join(" "); |
162 | 176 |
163 std::cerr << "HgRunner: starting: " << hgExePathAndName.toStdString() << " "; | 177 QString cmdline = hgExePathAndName; |
164 foreach (QString param, params) std::cerr << param.toStdString() << " "; | 178 foreach (QString param, params) cmdline += " " + param; |
165 std::cerr << std::endl; | 179 DEBUG << "HgRunner: starting: " << cmdline; |
166 | 180 |
167 proc -> start(hgExePathAndName, params); | 181 proc -> start(hgExePathAndName, params); |
168 | 182 |
169 } | 183 } |
170 | 184 |