comparison src/hgrunner.cpp @ 484:896b7903e8f2

Make "Show all files" persistent (fixing #203), and rationalise some config group names (noting that "General" is actually the default group "" as it appears in the config file, not the name of a group called "General": that appears as "%General")
author Chris Cannam
date Wed, 17 Aug 2011 16:09:04 +0100
parents 319f920a51ee
children cd3dd285d0ff
comparison
equal deleted inserted replaced
483:a582c6417004 484:896b7903e8f2
497 // We require a working directory, never just operate in pwd 497 // We require a working directory, never just operate in pwd
498 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");
499 return; 499 return;
500 } 500 }
501 501
502 QSettings settings;
503 settings.beginGroup("General");
504
505 if (executable == "") { 502 if (executable == "") {
506 // This is a Hg command 503 // This is a Hg command
507 executable = getHgBinaryName(); 504 executable = getHgBinaryName();
508 if (executable == "") executable = "hg"; 505 if (executable == "") executable = "hg";
509 506
514 } 511 }
515 512
516 if (action.mayBeInteractive()) { 513 if (action.mayBeInteractive()) {
517 params.push_front("ui.interactive=true"); 514 params.push_front("ui.interactive=true");
518 params.push_front("--config"); 515 params.push_front("--config");
516 QSettings settings;
519 if (settings.value("useextension", true).toBool()) { 517 if (settings.value("useextension", true).toBool()) {
520 params = addExtensionOptions(params); 518 params = addExtensionOptions(params);
521 } 519 }
522 interactive = true; 520 interactive = true;
523 } 521 }