comparison mainwindow.cpp @ 107:fdca34c989c0

* Make interactivity optional in hgrunner (makes running non-interactive, local commands a bit quicker)
author Chris Cannam
date Thu, 25 Nov 2010 20:18:10 +0000
parents 729438d70af8
children 8ae3b44c0073
comparison
equal deleted inserted replaced
106:729438d70af8 107:fdca34c989c0
360 } else { 360 } else {
361 // Commit all changes 361 // Commit all changes
362 params << "commit" << "--message" << comment << "--user" << getUserInfo(); 362 params << "commit" << "--message" << comment << "--user" << getUserInfo();
363 } 363 }
364 364
365 runner -> startHgCommand(workFolderPath, params); 365 runner -> startHgCommand(workFolderPath, params, true);
366 runningAction = ACT_COMMIT; 366 runningAction = ACT_COMMIT;
367 } 367 }
368 } 368 }
369 } 369 }
370 370
601 601
602 params << "clone" << remoteRepoPath << workFolderPath; 602 params << "clone" << remoteRepoPath << workFolderPath;
603 603
604 hgTabs->setWorkFolderAndRepoNames(workFolderPath, remoteRepoPath); 604 hgTabs->setWorkFolderAndRepoNames(workFolderPath, remoteRepoPath);
605 605
606 runner -> startHgCommand(workFolderPath, params); 606 runner -> startHgCommand(workFolderPath, params, true);
607 runningAction = ACT_CLONEFROMREMOTE; 607 runningAction = ACT_CLONEFROMREMOTE;
608 } 608 }
609 } 609 }
610 610
611 611
630 { 630 {
631 QStringList params; 631 QStringList params;
632 632
633 params << "incoming" << "--newest-first" << remoteRepoPath; 633 params << "incoming" << "--newest-first" << remoteRepoPath;
634 634
635 runner -> startHgCommand(workFolderPath, params); 635 runner -> startHgCommand(workFolderPath, params, true);
636 runningAction = ACT_INCOMING; 636 runningAction = ACT_INCOMING;
637 } 637 }
638 } 638 }
639 639
640 640
644 { 644 {
645 QStringList params; 645 QStringList params;
646 646
647 params << "pull" << remoteRepoPath; 647 params << "pull" << remoteRepoPath;
648 648
649 runner -> startHgCommand(workFolderPath, params); 649 runner -> startHgCommand(workFolderPath, params, true);
650 runningAction = ACT_PULL; 650 runningAction = ACT_PULL;
651 } 651 }
652 } 652 }
653 653
654 654
658 { 658 {
659 QStringList params; 659 QStringList params;
660 660
661 params << "push" << remoteRepoPath; 661 params << "push" << remoteRepoPath;
662 662
663 runner -> startHgCommand(workFolderPath, params); 663 runner -> startHgCommand(workFolderPath, params, true);
664 runningAction = ACT_PUSH; 664 runningAction = ACT_PUSH;
665 } 665 }
666 } 666 }
667 667
668 668
1263 hgHeads(); 1263 hgHeads();
1264 } 1264 }
1265 else if (runningAction == ACT_HEADS) 1265 else if (runningAction == ACT_HEADS)
1266 { 1266 {
1267 runningAction = ACT_NONE; 1267 runningAction = ACT_NONE;
1268 //!!! hgParents(); // skip this, we don't currently use it 1268 hgParents();
1269 hgLog();
1270 } 1269 }
1271 else if (runningAction == ACT_PARENTS) 1270 else if (runningAction == ACT_PARENTS)
1272 { 1271 {
1273 runningAction = ACT_NONE; 1272 runningAction = ACT_NONE;
1274 hgLog(); 1273 hgLog();