comparison hgtabwidget.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 5c262ac73948
comparison
equal deleted inserted replaced
153:70fe12873106 154:6bcb4a4d6521
79 void HgTabWidget::setCurrent(QStringList ids, QString branch) 79 void HgTabWidget::setCurrent(QStringList ids, QString branch)
80 { 80 {
81 m_historyWidget->setCurrent(ids, branch, canCommit()); 81 m_historyWidget->setCurrent(ids, branch, canCommit());
82 } 82 }
83 83
84 void HgTabWidget::updateHistory()
85 {
86 m_historyWidget->update();
87 }
88
84 bool HgTabWidget::canCommit() const 89 bool HgTabWidget::canCommit() const
85 { 90 {
86 if (!m_fileStatusWidget->getSelectedAddableFiles().empty()) return false; 91 if (!m_fileStatusWidget->getSelectedAddableFiles().empty()) return false;
87 return m_fileStatusWidget->haveChangesToCommit(); 92 return m_fileStatusWidget->haveChangesToCommit();
88 } 93 }