Mercurial: Save resources, polishing.

Start the jobrunner on demand, save options only if changed,
give it the structure used elsewhere in the VCS plugins. Remove
last traces of the cmd /c hack.
This commit is contained in:
Friedemann Kleint
2009-11-06 12:32:38 +01:00
parent d570b05bec
commit b0e1fdbfc4
11 changed files with 194 additions and 133 deletions

View File

@@ -32,6 +32,7 @@
#include <QtCore/QObject>
#include <QtCore/QPair>
#include <QtCore/QSharedPointer>
QT_BEGIN_NAMESPACE
class QFileInfo;
@@ -49,6 +50,7 @@ namespace Mercurial {
namespace Internal {
class MercurialJobRunner;
class HgTask;
class MercurialClient : public QObject
{
@@ -90,6 +92,7 @@ private slots:
private:
bool executeHgSynchronously(const QFileInfo &file, const QStringList &args,
QByteArray *output=0) const;
void enqueueJob(const QSharedPointer<HgTask> &);
MercurialJobRunner *jobManager;
Core::ICore *core;