Mercurial > hg > easyhg
comparison src/hgrunner.cpp @ 489:86cdaa346e59
Merge
author | Chris Cannam |
---|---|
date | Wed, 17 Aug 2011 22:13:51 +0100 |
parents | 896b7903e8f2 |
children | cd3dd285d0ff |
comparison
equal
deleted
inserted
replaced
488:2f59333952ce | 489:86cdaa346e59 |
---|---|
38 | 38 |
39 #ifndef Q_OS_WIN32 | 39 #ifndef Q_OS_WIN32 |
40 #include <unistd.h> | 40 #include <unistd.h> |
41 #include <termios.h> | 41 #include <termios.h> |
42 #include <fcntl.h> | 42 #include <fcntl.h> |
43 #else | |
44 #include <process.h> | |
43 #endif | 45 #endif |
44 | 46 |
45 HgRunner::HgRunner(QString myDirPath, QWidget * parent) : | 47 HgRunner::HgRunner(QString myDirPath, QWidget * parent) : |
46 QProgressBar(parent), | 48 QProgressBar(parent), |
47 m_myDirPath(myDirPath) | 49 m_myDirPath(myDirPath) |
495 // We require a working directory, never just operate in pwd | 497 // We require a working directory, never just operate in pwd |
496 emit commandFailed(action, "EasyMercurial: No working directory supplied, will not run Mercurial command without one"); | 498 emit commandFailed(action, "EasyMercurial: No working directory supplied, will not run Mercurial command without one"); |
497 return; | 499 return; |
498 } | 500 } |
499 | 501 |
500 QSettings settings; | |
501 settings.beginGroup("General"); | |
502 | |
503 if (executable == "") { | 502 if (executable == "") { |
504 // This is a Hg command | 503 // This is a Hg command |
505 executable = getHgBinaryName(); | 504 executable = getHgBinaryName(); |
506 if (executable == "") executable = "hg"; | 505 if (executable == "") executable = "hg"; |
507 | 506 |
512 } | 511 } |
513 | 512 |
514 if (action.mayBeInteractive()) { | 513 if (action.mayBeInteractive()) { |
515 params.push_front("ui.interactive=true"); | 514 params.push_front("ui.interactive=true"); |
516 params.push_front("--config"); | 515 params.push_front("--config"); |
516 QSettings settings; | |
517 if (settings.value("useextension", true).toBool()) { | 517 if (settings.value("useextension", true).toBool()) { |
518 params = addExtensionOptions(params); | 518 params = addExtensionOptions(params); |
519 } | 519 } |
520 interactive = true; | 520 interactive = true; |
521 } | 521 } |