comparison mainwindow.cpp @ 154:6bcb4a4d6521

* Try to reduce unnecessary history updates; add --new-branch option on push
author Chris Cannam
date Thu, 02 Dec 2010 18:04:21 +0000
parents 70fe12873106
children edab92f3ea0b
comparison
equal deleted inserted replaced
153:70fe12873106 154:6bcb4a4d6521
630 tr("You are about to push to the following remote repository:"), 630 tr("You are about to push to the following remote repository:"),
631 remoteRepoPath), 631 remoteRepoPath),
632 QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok) { 632 QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok) {
633 633
634 QStringList params; 634 QStringList params;
635 params << "push" << remoteRepoPath; 635 params << "push" << "--new-branch" << remoteRepoPath;
636 runner->requestAction(HgAction(ACT_PUSH, workFolderPath, params)); 636 runner->requestAction(HgAction(ACT_PUSH, workFolderPath, params));
637 } 637 }
638 } 638 }
639 639
640 QString MainWindow::listAllUpIpV4Addresses() 640 QString MainWindow::listAllUpIpV4Addresses()
1623 } else if (canMerge) { 1623 } else if (canMerge) {
1624 hgTabs->setState(tr("<b>Awaiting merge</b> on %1").arg(branchText)); 1624 hgTabs->setState(tr("<b>Awaiting merge</b> on %1").arg(branchText));
1625 } else { 1625 } else {
1626 hgTabs->setState(tr("At the head of %1").arg(branchText)); 1626 hgTabs->setState(tr("At the head of %1").arg(branchText));
1627 } 1627 }
1628
1629 hgTabs->updateHistory();
1628 } 1630 }
1629 1631
1630 void MainWindow::createActions() 1632 void MainWindow::createActions()
1631 { 1633 {
1632 //File actions 1634 //File actions